How to define instance variable of any class in rspec test
1 |
subject { described_class.new(response, token) } |
1 |
subject.instance_variable_set(:@response, { 'some response' }) |
and in test suite you can use any instance method where this variable is used.
Najnowsze komentarze