Skip to content
Browse files

Fixing spec warning

  • Loading branch information...
1 parent 0e453ac commit e5a71abd440a7e1ced55add3e07f77cd192e84fd @beerlington committed Feb 24, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/classy_enum/active_record_spec.rb
View
4 spec/classy_enum/active_record_spec.rb
@@ -58,8 +58,8 @@ class OtherDog < Dog
specify { DefaultDog.new(:breed => nil).should_not be_valid }
specify { DefaultDog.new(:breed => '').should_not be_valid }
- context "with valid breed options" do
- [:golden_retriever, 'golden_retriever', Breed::GoldenRetriever.new, Breed::GoldenRetriever].each do |option|
+ [:golden_retriever, 'golden_retriever', Breed::GoldenRetriever.new, Breed::GoldenRetriever].each do |option|
+ context "with a valid breed option" do
subject { DefaultDog.new(:breed => option) }
it { should be_valid }
its(:breed) { should be_a(Breed::GoldenRetriever) }

0 comments on commit e5a71ab

Please sign in to comment.
Something went wrong with that request. Please try again.