Sha256: 69b8ca170cc54fb65762ba59d4e765430e36e7726f26fcfbf8d05342d2c7f83c
Contents?: true
Size: 1001 Bytes
Versions: 1
Compression:
Stored size: 1001 Bytes
Contents
require 'spec_helper' describe Matcha::Server, :type => :request do def app Matcha.application end before do Matcha.mode = :server end it "serves a root page" do visit "/" page.should have_content("Array#sum (js)") page.should have_css(".test.pass") end it "serves an individual JavaScript spec" do visit "/array_sum_js_spec" page.should have_content("Array#sum (js)") page.should have_css(".test.pass", :count => 2) end it "serves an individual CoffeeScript spec" do visit "/array_sum_cs_spec" page.should have_content("Array#sum (cs)") page.should have_css(".test.pass", :count => 2) end it "serves a spec in a subdirectory" do visit "/subdirectory/subdirectory_spec" page.should have_content("spec in subdirectory") page.should have_css(".test.pass") end it "supports spec helpers" do visit "/spec_helper_spec" page.should have_content("two_plus_two") page.should have_css(".test.pass") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matcha-0.9.0 | spec/server_spec.rb |