Sha256: d86bb805483554f6b79166a523a4a2ed9eeba21bca919424282f2cb1d89c6a2d
Contents?: true
Size: 612 Bytes
Versions: 6
Compression:
Stored size: 612 Bytes
Contents
require 'spec_helper' # Generators are not automatically loaded by Rails require 'generators/rspec/observer/observer_generator' describe Rspec::Generators::ObserverGenerator do # Tell the generator where to put its output (what it thinks of as Rails.root) destination File.expand_path("../../../../../tmp", __FILE__) subject { file('spec/models/posts_observer_spec.rb') } before do prepare_destination run_generator %w(posts) end describe 'the spec' do it { should exist } it { should contain /require 'spec_helper'/ } it { should contain /describe PostsObserver/ } end end
Version data entries
6 entries across 6 versions & 1 rubygems