Sha256: 6cdaf6062ca188ff5e1ff6adb70e8b4984d21159ac1077ef4975556e4f60350f

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper')

describe <%= class_name %>Observer do
  
  it "should observe <%= class_name %>" do
    <%= file_name %> = Factory(:<%= file_name %>)
    observer = <%= class_name %>Observer.instance
    observer.after_create(<%= file_name %>)
  end
  
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
Objective3-objective_spec-0.1.2 generators/objective_observer/templates/observer_spec.rb
Objective3-objective_spec-0.1.3 generators/objective_observer/templates/observer_spec.rb
Objective3-objective_spec-0.1.4 generators/objective_observer/templates/observer_spec.rb
objective_spec-0.3.1 generators/objective_observer/templates/observer_spec.rb
objective_spec-0.3.0 generators/objective_observer/templates/observer_spec.rb
objective_spec-0.2.0 generators/objective_observer/templates/observer_spec.rb