Sha256: c06ad8021cfbeafc9e037dd7e8c8f483e7d501df06ad55de40c25067e5548fa1

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

describe 'observer helper' do
  include RSpec::Rails::Observer

  before :each do              
    create_observer :account
  end

  after :each do              
    remove_observer :account
  end
    
  it "should have an :account observer file that contains an AccountObserver class" do
    Rails.application.should have_observer :account do |file|
      file.should have_observer_class :account
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
generator-spec-0.4.8 spec/generator_spec/matchers/rails/observer_matcher_spec.rb
generator-spec-0.4.7 spec/generator_spec/matchers/rails/observer_matcher_spec.rb