Skip to content

Commit

Permalink
fix cell test
Browse files Browse the repository at this point in the history
  • Loading branch information
antopalidi committed Oct 27, 2023
1 parent ee66c46 commit bd07056
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/cells/voting/three_flags_proposal_cell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ module Voting
create(:awesome_vote_weight, vote: create(:proposal_vote, proposal: proposal, author: user), weight: 1)
end

it "returns 'fully-opaque' for the weight the user has voted for" do
expect(subject.opacity_class_for(1)).to eq("fully-opaque")
it "returns 'fully-opaque non-clickable' for the weight the user has voted for" do
expect(subject.opacity_class_for(1)).to eq("fully-opaque non-clickable")
end

it "returns 'semi-opaque' for the weights the user has not voted for" do
expect(subject.opacity_class_for(2)).to eq("semi-opaque")
expect(subject.opacity_class_for(3)).to eq("semi-opaque")
it "returns 'semi-opaque non-clickable' for the weights the user has not voted for" do
expect(subject.opacity_class_for(2)).to eq("semi-opaque non-clickable")
expect(subject.opacity_class_for(3)).to eq("semi-opaque non-clickable")
end
end

Expand Down

0 comments on commit bd07056

Please sign in to comment.