UWE-Ruby/week-03 — Issue #1: add pre-change validation
Author: mungruby
Created: 2011-10-17 18:30:44+00:00
State: open

What do you think about changing the expectations to include a pre-change validation?

it "should reverse the value from true to false" do
superman_index = subject.index(:superman)
superman_index.should be_true
superman_index = !superman_index
superman_index.should be_false
end

it "should reverse the value from false to true" do
captain_marvel = subject.include?(:captain_marvel)
captain_marvel.should be_false
captain_marvel = !captain_marvel
captain_marvel.should be_true
end