Sha256: 36906d383d776348d40dacd20101281aff32f019435406a7f608e544d15e34ba

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 Bytes

Contents

require 'spec_helper'

root_dir = RailsAssist::Directory.rails_root

describe 'observer helper' do
  use_helper :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
    # root_dir.should have_observer_file :account do |file|
    #   file.should have_observer_class :account
    # end
    root_dir.should have_observer :account
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-app-spec-0.4.0 spec/rails_app_spec/matchers/artifact/observer_spec.rb
rails-app-spec-0.3.3 spec/rails_app_spec/matchers/artifact/observer_spec.rb