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