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