Skip to content

Instantly share code, notes, and snippets.

@adam-e-trepanier
Created September 27, 2013 03:44
Show Gist options
  • Select an option

  • Save adam-e-trepanier/6723833 to your computer and use it in GitHub Desktop.

Select an option

Save adam-e-trepanier/6723833 to your computer and use it in GitHub Desktop.
rspec feature
require 'spec_helper'
feature "Credential idempotency" do
# He shouldn't be describing it anyway, but you
# could write the nice little stuff here
scenario "Editing authorization information of a credential increments the version" do
prev_version = obj.credential_version
obj.modify_encrypted_data # A real Domain model or moved to a page object
obj.credential_version.should eql prev_version++ # Not hunting for step, what context did I lose?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment