Sha256: 4f32a3eb9d169cad8234c879fdc96b6330a6e7e6ba87a98f21322ca0cfcacb69
Contents?: true
Size: 636 Bytes
Versions: 2
Compression:
Stored size: 636 Bytes
Contents
require 'spec_helper' require 'rails/generators/ripple/observer/observer_generator' describe Ripple::Generators::ObserverGenerator do context "in the top-level scope" do before { run_generator %w{person} } subject{ file('app/models/person_observer.rb') } it { should exist } it { should contain("class PersonObserver < ActiveModel::Observer") } end context "in a nested scope" do before { run_generator %w{profiles/social} } subject { file('app/models/profiles/social_observer.rb') } it { should exist } it { should contain("class Profiles::SocialObserver < ActiveModel::Observer") } end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
wyngle-ripple-0.1.0 | spec/generators/ripple/observer_generator_spec.rb |
ripple-1.0.0.beta2 | spec/generators/ripple/observer_generator_spec.rb |