Skip to content

Instantly share code, notes, and snippets.

@shellandbull
Created March 9, 2014 12:58
Show Gist options
  • Save shellandbull/9447363 to your computer and use it in GitHub Desktop.
Save shellandbull/9447363 to your computer and use it in GitHub Desktop.
describe Superman do
it "should absorbe the energy from the sun" do
ross = Superman.new
sun = double(:sun, {:sunbeam_energy => 10}) # This sun is a double.
ross.absorb_energy_from(sun)
expect(ross.solar_energy).to eq(60)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment