Skip to content

Commit

Permalink
Fix tests after previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephHalter committed Nov 29, 2011
1 parent 1a12ce2 commit 287d8c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion spec/bitemporal_date_spec.rb
Expand Up @@ -421,7 +421,6 @@ class MyName < Sequel::Model
plugin :bitemporal, version_class: MyNameVersion
end
expect do
raise MyName.eager_graph(:current_version).sql.inspect
MyName.eager_graph(:current_version).where("my_name_current_version.id IS NOT NULL").first
end.not_to raise_error
Object.send :remove_const, :MyName
Expand Down
6 changes: 3 additions & 3 deletions spec/bitemporal_time_spec.rb
Expand Up @@ -297,10 +297,10 @@ def validate
master = @master_class.new
master.update_attributes name: "Single Standard", price: 98
master.update_attributes name: "Single Standard", price: 94, valid_from: Time.now+2*hour
@master_class.eager_graph(:current_version).where("current_version.id IS NOT NULL").first.should be
@master_class.eager_graph(:current_version).where("rooms_current_version.id IS NOT NULL").first.should be
Timecop.freeze Time.now+hour
master.destroy
@master_class.eager_graph(:current_version).where("current_version.id IS NOT NULL").first.should be_nil
@master_class.eager_graph(:current_version).where("rooms_current_version.id IS NOT NULL").first.should be_nil
end
it "allows loading masters with a current version" do
master_destroyed = @master_class.new
Expand Down Expand Up @@ -364,4 +364,4 @@ def validate
master_with_future.update_attributes name: "Single Standard", price: 94, valid_from: Time.now+2*hour
@master_class.with_current_or_future_versions.all.should have(2).item
end
end
end

0 comments on commit 287d8c6

Please sign in to comment.