[#120] fix specs

This commit is contained in:
Alexander Machehin 2013-05-07 00:26:58 +06:00
parent af51f67b64
commit 9aec0a22f9
1 changed files with 0 additions and 5 deletions

View File

@ -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)