Skip to content

Commit

Permalink
tiny test tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
hoverbird committed Jul 26, 2011
1 parent c3390f5 commit 1d9e2cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/story_elements_spec.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1d9e2cc

Please sign in to comment.