Skip to content

Commit

Permalink
fixed a bug in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert Hajee authored and Bert Hajee committed Jun 25, 2013
1 parent b139fda commit d6ff039
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions spec/page_record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,14 @@ class TeamPage < PageRecord::Base

describe ".host_class" do

before do
class FunnyRecord < PageRecord::Base
host_class Team
end
end

context "with a parameter" do

before do
class FunnyRecord < PageRecord::Base
host_class Team
end
end

# TODO refactor test
subject {FunnyRecord.new(1) }
Expand Down

0 comments on commit d6ff039

Please sign in to comment.