Remove randomized fails in specs cause some miss configuration.

Depending on the order of the specs the notifier was configured or not. I've tried with seeds: 51050 and 19971. Seems to be solved in local.

I've moved configuration methods to a shared_context. We can reconfigure the notifier with metadata using `reconfigure_notifier: true`.
Ok perfect.

On Mon, Oct 27, 2014 at 10:38 PM, Brian Rue <notifications@github.com>
wrote:

> In spec/support/notifier_helpers.rb:
>
> > @@ -0,0 +1,21 @@
> > +module NotifierHelpers
> > +  def reconfigure_notifier
> > +    Rollbar.reconfigure do |config|
> > +      # special test access token
> > +      config.access_token = test_access_token
> > +      config.logger = ::Rails.logger
> > +      config.root = ::Rails.root
> > +      config.framework = "Rails: #{::Rails::VERSION::STRING}"
> > +      config.request_timeout = 60
> > +    end
> > +  end
> > +
> > +  def test_access_token
> > +    'aaaabbbbccccddddeeeeffff00001111'
>
> Let's actually use this one (the one that was in home_spec.rb):
> bfec94a1ede64984b862880224edd0ed. That's the token for this project,
> which is a public project: https://rollbar.com/Rollbar/rollbar-gem/
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/rollbar/rollbar-gem/pull/156/files#r19439351>.
>



-- 
Jon