Sha256: 3a73ea7748262dc9992caa5567c123932481d7839a98d074228a46ccdd5ffd83

Contents?: true

Size: 328 Bytes

Versions: 10

Compression:

Stored size: 328 Bytes

Contents

require 'rails_helper'

# Basic middleware integration test to ensure Rack::JSONP continues to do its job
feature "JSONP API results" do
  scenario "User requests events.json with a JSONP callback specified" do
    visit "/events.json?callback=myFunction"
    expect(page).to have_content /^(?:\/\*\*\/)?myFunction\(/
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
calagator-1.0.0 spec/features/jsonp_output_spec.rb
grokus-1.0.0.9 spec/features/jsonp_output_spec.rb
grokus-1.0.0.8 spec/features/jsonp_output_spec.rb
grokus-1.0.0.7 spec/features/jsonp_output_spec.rb
grokus-1.0.0.6 spec/features/jsonp_output_spec.rb
grokus-1.0.0.5 spec/features/jsonp_output_spec.rb
grokus-1.0.0.3 spec/features/jsonp_output_spec.rb
grokus-1.0.0.2 spec/features/jsonp_output_spec.rb
grokus-1.0.0.1 spec/features/jsonp_output_spec.rb
calagator-1.0.0.rc3 spec/features/jsonp_output_spec.rb