Sha256: 15694e8da601713d36da88b25c41a7df06ac30386e78e81530148a55d55711b3

Contents?: true

Size: 831 Bytes

Versions: 6

Compression:

Stored size: 831 Bytes

Contents

require 'devtools/spec_helper'

module Spec

  def self.response_data
    :data
  end

  class Observer
    def self.call(response)
    end
  end

  class Action
    class Success
      def self.call(request)
        request.success(Spec.response_data)
      end
    end

    class Failure
      def self.call(request)
        request.error(Spec.response_data)
      end
    end
  end

end

if ENV['COVERAGE'] == 'true'
  require 'simplecov'
  require 'coveralls'

  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
  ]

  SimpleCov.start do
    command_name     'spec:unit'
    add_filter       'config'
    add_filter       'spec'
    minimum_coverage 100
  end
end

require 'substation'

include Substation

RSpec.configure do |config|
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
substation-0.0.7 spec/spec_helper.rb
substation-0.0.6 spec/spec_helper.rb
substation-0.0.5 spec/spec_helper.rb
substation-0.0.4 spec/spec_helper.rb
substation-0.0.3 spec/spec_helper.rb
substation-0.0.2 spec/spec_helper.rb