Skip to content

Commit

Permalink
fix failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Jul 20, 2008
1 parent 045ec71 commit 1f7974a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/integrity_spec.rb
Expand Up @@ -20,12 +20,13 @@
end

after(:each) do
Integrity.instance_eval { @config = nil }
Integrity.instance_variable_set(:@config, nil)
end

it 'should load the default configuration file if nothing specified' do
YAML.should_receive(:load_file).with(Integrity.root + '/config/config.yml').
and_return(@config)
Integrity.instance_variable_set(:@config, nil)
Integrity.new
end

Expand Down
2 changes: 1 addition & 1 deletion spec/project_spec.rb
Expand Up @@ -162,7 +162,7 @@ def valid_attributes(attributes={})
before do
@project.update_attributes(:name => "Integrity", :uri => "git://github.com/foca/integrity.git")
commit = { :author => "someguy", :identifier => "commit sha", :date => "yesterday" }
5.times {|i| @project.builds.create(:output => "o", :error => "e", :commit => commit) }
5.times {|i| @project.builds.create(:output => "o", :commit => commit) }
end

it "should find the last build by ordering chronologically" do
Expand Down

0 comments on commit 1f7974a

Please sign in to comment.