spec/generators/api_generator_spec.rb in gris-0.5.6 vs spec/generators/api_generator_spec.rb in gris-0.5.7
- old
+ new
@@ -91,9 +91,9 @@
end
it 'creates a model spec' do
expected_model_file = File.join(generator_tmp_directory, 'spec/models/article_spec.rb')
model_code = File.read(expected_model_file)
- expect(model_code).to match(/describe Article/)
+ expect(model_code).to match(/describe Article, type: :model do/)
end
end
end