Sha256: b44d19e1c019c2fb9f9e71d11ead36626eed31b9b75634377e005bd73b06b39a

Contents?: true

Size: 433 Bytes

Versions: 3

Compression:

Stored size: 433 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))

describe "GraphMediator validation scenarios" do

  before(:each) do
    load_traceable_callback_tester
  end

  after(:each) do
    Object.__send__(:remove_const, :Traceable)
  end

  it "should not call after_mediation if validation fails" do
    t = Traceable.new
    t.save.should == false
    @traceables_callbacks.should == [:before]
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
graph_mediator-0.2.3 spec/integration/validation_spec.rb
graph_mediator-0.2.2 spec/integration/validation_spec.rb
graph_mediator-0.2.1 spec/integration/validation_spec.rb