Sha256: 39a9847b6b726e0d42b474642cbb3fc4a99d0850212166430666cc7e1ad103bc

Contents?: true

Size: 892 Bytes

Versions: 35

Compression:

Stored size: 892 Bytes

Contents

class BindingTestController < ActionController::Base

  def is_up
    render :text => up?.to_s
  end

  def up_target
    render :text => up.target
  end

  def up_fail_target
    render :text => up.fail_target
  end

  def up_is_target
    render :text => up.target?(tested_target).to_s
  end

  def up_is_fail_target
    render :text => up.fail_target?(tested_target).to_s
  end

  def up_is_any_target
    render :text => up.any_target?(tested_target).to_s
  end

  def is_up_validate
    render :text => up.validate?.to_s
  end

  def up_validate_name
    render :text => up.validate_name
  end

  def set_up_title
    up.title = 'Pushed document title'
    render :text => 'text'
  end

  def text
    render :text => 'text from controller'
  end

  private

  def tested_target
    tested_target = params[:tested_target].presence
    tested_target or raise "No target given"
  end

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
unpoly-rails-1.0.3 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-1.0.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-1.0.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.62.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.62.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.61.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.61.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.60.3 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.60.2 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.60.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.60.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.57.0 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.56.7 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.56.6 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.56.5 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.56.4 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.56.3 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.56.2 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.56.1 spec_app/app/controllers/binding_test_controller.rb
unpoly-rails-0.56.0 spec_app/app/controllers/binding_test_controller.rb