First content proof integration spec

arnaud sellenet committed Jun 17, 2014
commit 0992aede52c82b5a02b4ba10573ea588a0aa20a5
Showing 2 changed files with 18 additions and 4 deletions
spec/fixtures/default/app/views/pages/basic.liquid.haml +13 -0
@@ @@ -0,0 +1,13 @@
+ ---
+ title: Basic page
+ ---
+ !!! XML
+ !!!
+ %html{ :lang => "en" }
+ %head
+ %meta{ :charset => "utf-8" }
+
+ %title {{ page.title }}
+ %body
+ %p
+ This is a basic page
spec/integration/server/basic_spec.rb +5 -4
@@ @@ -8,14 +8,15 @@ describe Locomotive::Steam::Server do
run_server
end
- it 'can render the index page', pending: true do
+ it 'can render the index page' do
get '/index'
last_response.status.should eq(200)
end
- it 'shows the index page', pending: true do
- get '/index'
- last_response.body.should =~ /Upcoming events/
+ it 'shows a basic page' do
+ get '/basic'
+ last_response.body.should =~ /This is a basic page/
+ last_response.body.should =~ /<title>Basic page<\/title>/
end
it 'shows the 404 page', pending: true do