From 1d9e2cc425221fa4168772f0042f80c0c1ff95f2 Mon Sep 17 00:00:00 2001 From: Patrick Ewing Date: Tue, 26 Jul 2011 01:09:47 -0700 Subject: [PATCH] tiny test tweak --- spec/story_elements_spec.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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