I hereby claim:
- I am jgraichen on github.
- I am jgraichen (https://keybase.io/jgraichen) on keybase.
- I have a public key whose fingerprint is DAA4 E338 0D05 E6D0 D807 C428 C5C4 76B4 F274 91C9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
module A | |
def valid?(context) | |
true | |
end | |
end | |
module B | |
def valid?(*args) | |
super | |
end |
let!(:operation) { Acfs::Stub.resource :update, MyResource, with: { id: 1, key: "value" }, return: { id: 1, key: "value" } } | |
it "should call update action" do | |
# call you complex method here | |
# eg. call controller method with form params | |
post :update, id: 1, my_resource: { key: "value" }, format: "json" | |
expect(operation).to be_called | |
end |