Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rsamoilov committed Feb 19, 2024
1 parent ecf7677 commit 47f6438
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/rspec/rspec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,11 @@ def subdomain

expect(response).to have_http_status(:ok)
end

it "allows to stub app calls" do
allow_any_instance_of(RageController::API).to receive(:params).and_return({ i: "12345" })

get "/params?i=111"
expect(response.body).to eq("12345")
end
end

0 comments on commit 47f6438

Please sign in to comment.