Skip to content

Instantly share code, notes, and snippets.

@manicExpressive
Created July 14, 2015 22:10
Show Gist options
  • Select an option

  • Save manicExpressive/1b80f04c971b7300a5ae to your computer and use it in GitHub Desktop.

Select an option

Save manicExpressive/1b80f04c971b7300a5ae to your computer and use it in GitHub Desktop.
lando:now stickwithjosh$ rspec spec/policies/
CYPHER 3ms MATCH (result:`User`) WHERE (result.email = {result_email}) RETURN COUNT(result) AS count | {:result_email=>"dashawn.sipes@romaguera.name"}
CYPHER 3ms MATCH (result_user:`User`) WHERE (result_user.authentication_token = {result_user_authentication_token}) RETURN result_user LIMIT {limit_1} | {:result_user_authentication_token=>"bra7tn-sHCxLwmUMTgo-", :limit_1=>1}
CYPHER 3ms CREATE (n:`User` {props}) RETURN ID(n) | {:props=>{:uuid=>"7dbddcbe-38b6-46b8-b2a9-e2468c99e652", :first_name=>"Dayana", :last_name=>"Cronin", :created_at=>1436911764, :updated_at=>1436911764, :email=>"dashawn.sipes@romaguera.name", :encrypted_password=>"$2a$04$C51iIbRzGmSVroT4qfCSQOF9w7f98AuzKBPALdFewocWxnWmmcZHm", :sign_in_count=>0, :confirmed_at=>1436911764, :authentication_token=>"bra7tn-sHCxLwmUMTgo-"}}
CYPHER 3ms CREATE (n:`Channel` {props}) RETURN ID(n) | {:props=>{:uuid=>"24e49ed1-3d8b-40ea-87f6-c2df699bf8d5", :name=>"Vision-oriented well-modulated function", :members_can_post=>true}}
CYPHER 4ms MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r
F
Failures:
1) ChannelPolicy for non owner / member user should permit :show
Failure/Error: should permit(:show)
NoMethodError:
undefined method `find_all' for nil:NilClass
# ./spec/policies/channel_policy_spec.rb:11:in `block (3 levels) in <top (required)>'
Finished in 0.31696 seconds (files took 3.9 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/policies/channel_policy_spec.rb:10 # ChannelPolicy for non owner / member user should permit :show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment