Skip to content

Commit

Permalink
Merge pull request #18215 from kbrock/tag_spec
Browse files Browse the repository at this point in the history
Fix tag classification test
  • Loading branch information
jrafanie authored Nov 19, 2018
2 parents f2b2886 + 2cbce15 commit f0f22c3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions spec/models/tag_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,9 @@
end

it "tag with nil classification" do
@tag.classification = nil
categorization = @tag.categorization

expected_categorization = {"name" => nil,
"description" => nil,
"category" => {"name" => @category.name, "description" => @category.description},
"display_name" => "#{@category.description}: "}
expect(@tag.show).to eq(true)
expect(categorization).to eq(expected_categorization)
@tag.classification.delete
expect(@tag.show).to be_falsey
expect(@tag.categorization).to eq({})
end

it "category tags have no category" do
Expand Down

0 comments on commit f0f22c3

Please sign in to comment.