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