Skip to content

Commit

Permalink
Tag names aren’t populating with initial values.
Browse files Browse the repository at this point in the history
This spec fails for the moment, but gives us something to work with (and avoid reintroducing bugs later).
  • Loading branch information
pat committed Mar 5, 2018
1 parent 524690b commit 43b0fe2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/acceptance/tag_names_spec.rb
Expand Up @@ -109,4 +109,11 @@
it "allows overriding of tag_names=" do
expect(Article.instance_methods(false)).to_not include(:tag_names=)
end

it "returns known tag names from a freshly loaded object" do
article.tag_names << "melbourne"
article.save!

expect(Article.find(article.id).tag_names).to eq(["melbourne"])
end
end

0 comments on commit 43b0fe2

Please sign in to comment.