Skip to content

Instantly share code, notes, and snippets.

@JamesYang76
Created March 26, 2020 21:41
Show Gist options
  • Save JamesYang76/90e0a3c1ecb5940de5476fd5932dee91 to your computer and use it in GitHub Desktop.
Save JamesYang76/90e0a3c1ecb5940de5476fd5932dee91 to your computer and use it in GitHub Desktop.
Rspec

let

using variable first, and define can be later.

subject { AddressDeserializer.new(hash: report_params) }
describe "valid params" do
   let(:report_params) { { reference: "97801c47-c362-41eb-919e-036514fca39c" } }
end  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment