Skip to content

Commit

Permalink
Add base case test for responding to method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 26, 2024
1 parent 62c84d4 commit 4a656bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/sus/respond_to.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ def method_with_options(x: 10, y:)

describe Sus::RespondTo do
let(:interface) {Interface.new}


it "can respond to a method" do
expect(interface).to respond_to(:method_with_options)
end

it "can respond to a method with one option" do
expect(interface).to respond_to(:method_with_options).with_options(:x)
end
Expand Down

0 comments on commit 4a656bd

Please sign in to comment.