Sha256: a52d4164d92609375c4f7538bc4b1a354445a61d2eab296bb8a004d0785d3429

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 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

1 entries across 1 versions & 1 rubygems

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