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

Version Path
erector-rails4-0.2.0 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.1.3 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.1.2 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.1.1 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.1.0 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.0.7 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.0.6 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.0.5 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.0.4 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.0.3 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.0.2 spec/erector/hello_from_readme_spec.rb
erector-rails4-0.0.1 spec/erector/hello_from_readme_spec.rb