Skip to content

Instantly share code, notes, and snippets.

@galtenberg
Created November 21, 2013 18:23
Show Gist options
  • Save galtenberg/7586796 to your computer and use it in GitHub Desktop.
Save galtenberg/7586796 to your computer and use it in GitHub Desktop.
Current spec failures
1)
'NewRelicSso#initialize timestamp should == 1385054736' FAILED
expected: 1385054736,
got: 1357027200 (using ==)
/Users/nu_numina/dev/boxpanel/spec/lib/new_relic_sso_spec.rb:15:in `block (3 levels) in <top (required)>'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `eval'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `<main>'
2)
'UserHelper User Helper#login_person sets the authed_customer_id session variable to the first active_customers id' FAILED
expected: 447,
got: 1 (using ==)
/Users/nu_numina/dev/boxpanel/spec/helpers/user_helper_spec.rb:139:in `block (3 levels) in <top (required)>'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `eval'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `<main>'
3)
Spec::Mocks::MockExpectationError in 'UserHelper User Helper#login_person writes the authed_customer_id to the Rails cache'
#<ActiveSupport::Cache::DalliStore:0x007f93c371e860> received :write with unexpected arguments
expected: ("Person-Last-Logged-In-As-1", 448)
got: ("Person-Last-Logged-In-As-1", 1)
/Users/nu_numina/dev/boxpanel/app/helpers/user_helper.rb:166:in `login_person'
/Users/nu_numina/dev/boxpanel/spec/helpers/user_helper_spec.rb:144:in `block (3 levels) in <top (required)>'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `eval'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `<main>'
4)
'UserHelper User Helper#login_person sets the authed_customer_id session variable to the first active_customers id when the cached value is not a valid active_customer id' FAILED
expected: 451,
got: 1 (using ==)
/Users/nu_numina/dev/boxpanel/spec/helpers/user_helper_spec.rb:159:in `block (3 levels) in <top (required)>'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `eval'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `<main>'
5)
'NewRelicHelper#new_relic_sso_link returns a link to the single sign on for the given account_id' FAILED
expected "<a href=\"https://rpm.newrelic.com/sso_access?account_id=1234&amp;timestamp=1385054739&amp;token=1e4c6e4887990a2bc8947dd93d9f6ff8b8d079d3\">Login to NewRelic</a>" to include "https://rpm.newrelic.com/sso_access?account_id=1234&amp;timestamp=1357027200&amp;token=38126b79744d25d85a720aee952f9c9fe7d44efb"
/Users/nu_numina/dev/boxpanel/spec/helpers/new_relic_helper_spec.rb:15:in `block (3 levels) in <top (required)>'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `eval'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `<main>'
6)
'NewRelicHelper#new_relic_sso_link allows additional params to be included' FAILED
expected "<a href=\"https://rpm.newrelic.com/sso_access?account_id=1234&amp;timestamp=1385054739&amp;token=1e4c6e4887990a2bc8947dd93d9f6ff8b8d079d3\">Login to NewRelic</a>" to include "https://rpm.newrelic.com/sso_access?account_id=1234&amp;timestamp=1357027200&amp;token=38126b79744d25d85a720aee952f9c9fe7d44efb"
/Users/nu_numina/dev/boxpanel/spec/helpers/new_relic_helper_spec.rb:20:in `block (3 levels) in <top (required)>'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `eval'
/Users/nu_numina/.rvm/gems/ruby-1.9.3-p385@boxpanel/bin/ruby_noexec_wrapper:14:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment