spec/controllers/card_controller_spec.rb in wagn-1.13.0.pre1 vs spec/controllers/card_controller_spec.rb in wagn-1.13.0.pre2

- old
+ new

@@ -178,11 +178,11 @@ it "handles nonexistent card ids" do get :read, {:id=>'~9999999'} assert_response 404 end - + it "returns denial when no read permission" do Card::Auth.as_bot do Card.create! :name=>'Strawberry', :type=>'Fruit' #only admin can read end get :read, :id=>'Strawberry' @@ -247,10 +247,10 @@ it 'should create missing machine output file' do args = { :id=>@all_style.machine_output_card.name, :format=>'css', :explicit_file=>true } get :read, args output_card = Card[ "#{ Card[:all].name }+#{ Card[:style].name }+#{ Card[:machine_output].name}" ] - expect(response).to redirect_to( "#{ wagn_path output_card.attach.url }" ) + expect(response).to redirect_to( @all_style.machine_output_url ) get :read, args expect(response.status).to eq(200) end end