#345: fixed platforms_controller_spec.rb

This commit is contained in:
Vokhmin Alexey V 2014-03-21 01:35:34 +04:00
parent 9102042d6e
commit 22c5c82281
1 changed files with 0 additions and 2 deletions

View File

@ -238,7 +238,6 @@ shared_examples_for 'platform user without global admin rights' do
[:create, :make_clone].each do |action|
context "platform user without #{action} rights" do
before { any_instance_of(Platform, create_directory: true) }
it "should not be able to perform #{action} action" do
post action, clone_or_create_params
response.should_not be_success
@ -335,7 +334,6 @@ describe Platforms::PlatformsController do
[:make_clone, :create].each do |action|
context "with #{action} rights" do
before do
any_instance_of(Platform, create_directory: true)
clone_or_create_params[:platform][:owner_id] = @admin.id
end
it "should be able to perform #{action} action" do