Merge pull request #33 from warpc/8-personal_controller_tests
Fix #8. Add pretty view for test listing, fix "mount ---", fix warning
This commit is contained in:
commit
bd8788fe49
|
@ -35,10 +35,16 @@ describe BuildListsController do
|
|||
end
|
||||
|
||||
context 'filter' do
|
||||
|
||||
before(:each) do
|
||||
stub_rsync_methods
|
||||
set_session_for Factory(:admin)
|
||||
end
|
||||
|
||||
let(:build_list1) { Factory(:build_list_core) }
|
||||
let(:build_list2) { Factory(:build_list_core) }
|
||||
let(:build_list3) { Factory(:build_list_core) }
|
||||
before(:each) { set_session_for Factory(:admin) }
|
||||
|
||||
|
||||
it 'should filter by bs_id' do
|
||||
get :all, :filter => {:bs_id => build_list1.bs_id, :project_name => 'fdsfdf', :any_other_field => 'do not matter'}
|
||||
|
|
|
@ -42,11 +42,6 @@ describe PlatformsController do
|
|||
@admin = Factory(:admin)
|
||||
@user = Factory(:user)
|
||||
set_session_for(@admin)
|
||||
any_instance_of(Platform) do |plat|
|
||||
stub(plat).mount_directory_for_rsync {|args| true}
|
||||
stub(plat).umount_directory_for_rsync {|args| true}
|
||||
end
|
||||
# any_instance_of(Platform).umount_directory_for_rsync{true}
|
||||
end
|
||||
|
||||
it_should_behave_like 'able_to_perform_index#platforms'
|
||||
|
|
Loading…
Reference in New Issue