Skip to content

Commit

Permalink
minor naming change
Browse files Browse the repository at this point in the history
  • Loading branch information
mlomnicki committed Aug 4, 2009
1 parent bda34e0 commit 96b2ca3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/datasource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
describe PostPolicy::DataSource::Value do

it "should allow passing one or multiple values" do
value = PostPolicy::DataSource::Value.new( 1 )
value.exists?( 1 ).should == true
value = PostPolicy::DataSource::Value.new( [1,2] )
value.exists?( 1 ).should == true
value.exists?( 2 ).should == true
ds = PostPolicy::DataSource::Value.new( 1 )
ds.exists?( 1 ).should == true
ds = PostPolicy::DataSource::Value.new( [1,2] )
ds.exists?( 1 ).should == true
ds.exists?( 2 ).should == true
end

it "should match initialized values" do
value = PostPolicy::DataSource::Value.new( GOOD_VALUES )
value.exists?( GOOD_VALUES.first ).should == true
value.exists?( GOOD_VALUES.last ).should == true
value.exists?( BAD_VALUES.first ).should == false
value.exists?( BAD_VALUES.last ).should == false
it "should match initialized dss" do
ds = PostPolicy::DataSource::Value.new( GOOD_VALUES )
ds.exists?( GOOD_VALUES.first ).should == true
ds.exists?( GOOD_VALUES.last ).should == true
ds.exists?( BAD_VALUES.first ).should == false
ds.exists?( BAD_VALUES.last ).should == false
end

end
Expand Down

0 comments on commit 96b2ca3

Please sign in to comment.