diff --git a/spec/story_elements_spec.rb b/spec/story_elements_spec.rb index 9e675db..eff7c59 100644 --- a/spec/story_elements_spec.rb +++ b/spec/story_elements_spec.rb @@ -18,9 +18,7 @@ class TestUniqueRandomElements < TestAllElements before { @total_last_names = subject.last_names.size } specify { subject.characteristics.should be_kind_of Array } - - specify { subject.should_not respond_to(:characteristic) } - + it "should return the same array on each get" do subject.last_names.object_id.should == subject.last_names.object_id end @@ -31,6 +29,11 @@ class TestUniqueRandomElements < TestAllElements subject.last_name.should == subject.last_name subject.instance_variable_get(:@last_name).should == subject.last_name end + + it "has no element accessors that are undeclared" do + subject.should respond_to(:last_name) + subject.should_not respond_to(:characteristic) + end end context "has_random_story_element" do