Skip to content

Instantly share code, notes, and snippets.

@bhserna
Created December 17, 2016 01:23
Show Gist options
  • Save bhserna/905d2cef6c9c343f77c9aecd98684be3 to your computer and use it in GitHub Desktop.
Save bhserna/905d2cef6c9c343f77c9aecd98684be3 to your computer and use it in GitHub Desktop.
RSpec.shared_examples "investments value interface" do
it { expect(subject).to respond_to(:principal_invested) }
it { expect(subject).to respond_to(:generated_value) }
it { expect(subject).to respond_to(:current_value) }
it { expect(subject).to respond_to(:has_current_value_with_adjustment?) }
it { expect(subject).to respond_to(:value_of_received_payments) }
it { expect(subject).to respond_to(:count_of_received_payments) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment