Sha256: 225d487929eb5c31c6111c36ce87dd0daf04361f22e8c3e182abe697f7a04778
Contents?: true
Size: 383 Bytes
Versions: 12
Compression:
Stored size: 383 Bytes
Contents
here = File.expand_path(File.dirname(__FILE__)) require File.expand_path("#{here}/../spec_helper") describe "Hello World example from README" do it "works" do Dir.chdir('/tmp') do html = `ruby #{File.join(here,'hello_from_readme.rb')} 2>&1` html.should == "<html><head><title>Welcome page</title></head><body><p>Hello, world</p></body></html>\n" end end end
Version data entries
12 entries across 12 versions & 1 rubygems