class Shoulda::Matchers::ActionController::AssignToMatcher
def equal_to_expected_value?
def equal_to_expected_value? if @options[:check_value] if @options[:expected_value] == assigned_value @failure_message_for_should_not = "Didn't expect action to assign #{@options[:expected_value].inspect} " << "for #{@variable}, but got it anyway" true else @failure_message_for_should = "Expected action to assign #{@options[:expected_value].inspect} " << "for #{@variable}, but got #{assigned_value.inspect}" false end else true end end