Skip to content

Instantly share code, notes, and snippets.

@Supernats
Last active October 9, 2015 22:48
Show Gist options
  • Select an option

  • Save Supernats/53d886ffd95bf102c087 to your computer and use it in GitHub Desktop.

Select an option

Save Supernats/53d886ffd95bf102c087 to your computer and use it in GitHub Desktop.
describe "carrots diced with celery julienned" do
let(:chosen_carrots) { carrots_diced }
let(:chosen_celery) { celery_diced }
describe "user is selecting carrots" do
let(:changed_vegetable) { chosen_carrots }
it_sets :celery, to: :diced
it_does_not_change :carrots
end
describe "user is selecting celery" do
let(:changed_vegetable) { chosen_celery }
it_sets :carrots, to: :julienned
it_does_not_change :celery
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment