Sha256: 7d8a5014d54e6fb93de26405e6c2711ad0e2a1d35c51944e531ef4a038a6ec4e

Contents?: true

Size: 523 Bytes

Versions: 41

Compression:

Stored size: 523 Bytes

Contents

require 'spec_helper'

class StubApplicationDomainController < Iugu::ApplicationDomainController
  
  def index
    render :text => "true", :status => 200
  end

end

describe StubApplicationDomainController do

  def with_stub_routing
    with_routing do |map|
      map.draw do
        match '/stub/application/domain/index' => "stub_application_domain#index"
      end 
      yield
    end 
  end

  it 'should be_success' do
    with_stub_routing do
      get :index
    end
    response.should be_success
  end
  
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.23 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.22 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.21 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.20 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.19 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.18 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.17 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.16 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.14 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.13 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.12 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.11 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.10 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.9 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.7 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.5 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.4 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.3 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.2 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.1 spec/controllers/application_domain_controller_spec.rb