Sha256: 2395ca1d7dd6e71fdd5fae04771704d50557d9887e05e446656687960ca232d7

Contents?: true

Size: 568 Bytes

Versions: 8

Compression:

Stored size: 568 Bytes

Contents

# encoding: UTF-8
require 'acceptance/acceptance_helper'

class ContentTypeController < ApplicationController
  def index
    render :layout => true, :inline => "Test"
  end
end

feature 'content type' do
  %w[au softbank].each do |d|
    scenario d, :driver => d.to_sym do
      visit '/content_type'
      page.response_headers['Content-Type'].should == "text/html; charset=utf-8"
    end
  end
  scenario "docomo", :driver => :docomo do
    visit '/content_type'
    page.response_headers['Content-Type'].should == 'application/xhtml+xml; charset=utf-8'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
galakei-0.15.2 spec/acceptance/content_type_spec.rb
galakei-0.15.1 spec/acceptance/content_type_spec.rb
galakei-0.15.0 spec/acceptance/content_type_spec.rb
galakei-0.14.4 spec/acceptance/content_type_spec.rb
galakei-0.14.3 spec/acceptance/content_type_spec.rb
galakei-0.14.2 spec/acceptance/content_type_spec.rb
galakei-0.14.1 spec/acceptance/content_type_spec.rb
galakei-0.14.0 spec/acceptance/content_type_spec.rb