Skip to content

Commit

Permalink
fixed some broken specs
Browse files Browse the repository at this point in the history
  • Loading branch information
beerlington committed Jan 26, 2011
1 parent 45a75bf commit 124f41d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions spec/classy_enum_spec.rb
Expand Up @@ -91,19 +91,15 @@ def test_instance_method?
end

it "should return true for is_element?(:one)" do
@enum.element?(:one).should be_true
@enum.is?(:one).should be_true
end

it "should return true for is_element?('one')" do
@enum.element?('one').should be_true
@enum.is?('one').should be_true
end

it "should return true for is_element?('one')" do
@enum.element?(TestEnumOne).should be_true
end

it "should alias element? as is?" do
@enum.is?(:one).should be_true
@enum.is?(TestEnumOne).should be_true
end

it "should be a TestEnum" do
Expand Down

0 comments on commit 124f41d

Please sign in to comment.