it do expect { subject }.to change { some_value }. to(another_value) # some_value and another_value will be executed before subject, which means the values were defined/catched prior to subject end