Sha256: eaced32588e748e789145c69bf79ebd42da0cd8943347c34289ce696d294ee62

Contents?: true

Size: 649 Bytes

Versions: 6

Compression:

Stored size: 649 Bytes

Contents

require 'bundler'
Bundler.setup

require "action_controller/railtie"

Rails.application = Class.new(Rails::Application)
# Rails.application.routes.append do |r|
#   r.match "/render_event_response", :as => :apotomo_event_path
# end

# This class is used as a dummy widget for testing

module Rails
  def root
    Pathname.new(__FILE__).dirname.dirname.dirname
  end
end

require 'rspec/rails/example/widget_example_group'

# This class is used as a dummy widget for testing
class DummyWidget < Apotomo::Widget
  responds_to_event :doo

  def display
    @some_variable = :some_value
    render
  end
end
DummyWidget.append_view_path "spec/fixtures"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-apotomo-0.9.7 spec/spec_helper.rb
rspec-apotomo-0.9.6 spec/spec_helper.rb
rspec-apotomo-0.9.5 spec/spec_helper.rb
rspec-apotomo-0.9.4 spec/spec_helper.rb
rspec-apotomo-0.9.3 spec/spec_helper.rb
rspec-apotomo-0.9.2 spec/spec_helper.rb