rosa-build/spec/models/build_list_observer_spec.rb

22 lines
434 B
Ruby
Raw Permalink Normal View History

2012-04-12 11:29:04 +01:00
require 'spec_helper'
describe BuildListObserver do
before { stub_symlink_methods }
let(:build_list) { FactoryGirl.create(:build_list) }
it 'updates started_at when build started' do
expect(build_list.started_at).to be_nil
build_list.start_build
expect(build_list.started_at).to_not be_nil
end
it 'updates styatistics' do
expect do
build_list
end.to change(Statistic, :count).by(1)
end
2012-04-12 11:29:04 +01:00
end