Sha256: 924dae237f435df0f70ed9c079ebd935c6c5c6058f51f223a5b57ca97edea91e

Contents?: true

Size: 773 Bytes

Versions: 18

Compression:

Stored size: 773 Bytes

Contents

require 'spec_helper'

module PlaidRails
  describe "#configure" do
    it "should pass the class back to the given block" do
      PlaidRails.configure do |plaid_rails|
        expect(plaid_rails).to eq plaid_rails
      end
    end
  end
  
  describe "instrumentation" do
    it "should pass subscribe to PlaidRails::Event" do
      expect(PlaidRails::Event).to receive(:subscribe)
      PlaidRails.subscribe('foo', 'blah')
    end
    
    it "should pass instrument to PlaidRails::Event.backend" do
      expect(ActiveSupport::Notifications).to receive(:instrument)
      PlaidRails.instrument('foo', 'blah')
    end
    
    it "should pass all to PlaidRails::Event" do
      expect(PlaidRails::Event).to receive(:all)
      PlaidRails.all('blah')
    end
  end


end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
plaid_rails-0.13.0 spec/plaid_rails.spec.rb
plaid_rails-0.12.0 spec/plaid_rails.spec.rb
plaid_rails-0.11.0 spec/plaid_rails.spec.rb
plaid_rails-0.10.0 spec/plaid_rails.spec.rb
plaid_rails-0.9.0 spec/plaid_rails.spec.rb
plaid_rails-0.8.0 spec/plaid_rails.spec.rb
plaid_rails-0.7.0 spec/plaid_rails.spec.rb
plaid_rails-0.6.0 spec/plaid_rails.spec.rb
plaid_rails-0.5.0 spec/plaid_rails.spec.rb
plaid_rails-0.4.0 spec/plaid_rails.spec.rb
plaid_rails-0.3.0 spec/plaid_rails.spec.rb
plaid_rails-0.2.3 spec/plaid_rails.spec.rb
plaid_rails-0.2.2 spec/plaid_rails.spec.rb
plaid_rails-0.2.0 spec/plaid_rails.spec.rb
plaid_rails-0.1.1 spec/plaid_rails.spec.rb
plaid_rails-0.1.0 spec/plaid_rails.spec.rb
plaid_rails-0.0.2 spec/plaid_rails.spec.rb
plaid_rails-0.0.1 spec/plaid_rails.spec.rb