If you are trying to argue that some operation should not change the score, you can do
expect(something).to change(Foo, :count).by(1).and change(Bar, :count).by(0)
I don't know if this will work with strings, but maybe you could do something according to:
intro_before_change = @boilerplate_original.intro expect { click_button 'Update Boilerplate' @boilerplate_original.reload } .to change { @boilerplate_original.title }.to('A new boilerplate') .and change { @boilerplate_original.intro }.to(intro_before_change)
This is not particularly expressive, but he is doing his job.
Alex popov
source share