[#120] fix specs
This commit is contained in:
parent
af51f67b64
commit
9aec0a22f9
|
@ -49,7 +49,6 @@ describe CanCan do
|
|||
end
|
||||
|
||||
context 'Site guest' do
|
||||
let(:hidden_platform) { FactoryGirl.create(:platform, :visibility => 'hidden') }
|
||||
let(:register_request) { FactoryGirl.create(:register_request) }
|
||||
|
||||
before(:each) do
|
||||
|
@ -60,10 +59,6 @@ describe CanCan do
|
|||
@ability.should_not be_able_to(:read, open_platform)
|
||||
end
|
||||
|
||||
it 'should not be able to read hidden platform' do
|
||||
@ability.should_not be_able_to(:read, hidden_platform)
|
||||
end
|
||||
|
||||
[:publish, :cancel, :reject_publish, :create_container].each do |action|
|
||||
it "should not be able to #{ action } build list" do
|
||||
@ability.should_not be_able_to(action, BuildList)
|
||||
|
|
Loading…
Reference in New Issue