diff options
Diffstat (limited to 'spec/models/comment_spec.rb')
-rw-r--r-- | spec/models/comment_spec.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/models/comment_spec.rb b/spec/models/comment_spec.rb index 9b426b224..5f57e4884 100644 --- a/spec/models/comment_spec.rb +++ b/spec/models/comment_spec.rb @@ -119,13 +119,8 @@ describe Comment, type: :model do end describe "tags" do - let(:object) { build(:comment) } - - before do - # shared_behaviors/taggable.rb is still using instance variables, so we need to define them here. - # Suggestion: refactor all specs using shared_behaviors/taggable.rb to use "let" - @object = object + it_should_behave_like "it is taggable" do + let(:object) { build(:comment) } end - it_should_behave_like "it is taggable" end end |