Sha256: ece23f15dcef59149bf6a286338343e61e321b2346057c7e7c3c286eb33eb650

Contents?: true

Size: 338 Bytes

Versions: 7

Compression:

Stored size: 338 Bytes

Contents

module SurveyorAPIHelpers
  def json_response
    page.source
  end
  def title_modification_module(modifier)
    mod = Module.new
    mod.send(:define_method, :filtered_for_json) do
      dolly = self.clone
      dolly.sections = self.sections
      dolly.title = "#{modifier} #{dolly.title}"
      dolly
    end
    return mod
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
upgrade_surveyor_gui-0.1.3 spec/support/surveyor_api_helpers.rb
upgrade_surveyor_gui-0.1.2 spec/support/surveyor_api_helpers.rb
upgrade_surveyor-1.4.2 spec/support/surveyor_api_helpers.rb
surveyor_gui-0.1.2 spec/support/surveyor_api_helpers.rb
surveyor_gui-0.1.1 spec/support/surveyor_api_helpers.rb
surveyor_gui-0.1.0 spec/support/surveyor_api_helpers.rb
surveyor_gui-0.0.3 spec/support/surveyor_api_helpers.rb