Permalink
Browse files

First tests plus skeleton.

  • Loading branch information...
daviferreira committed Sep 16, 2011
1 parent d3682d0 commit a58106a6c000049af2be7d84b9ee1191e42791f9
Showing with 51 additions and 4 deletions.
  1. +9 −0 features/home_page.feature
  2. +7 −0 features/step_definitions/gimmelicious_steps.rb
  3. +12 −0 features/support/env.rb
  4. +17 −2 views/index.haml
  5. +6 −2 views/layout.haml
@@ -0,0 +1,9 @@
+Feature: Viewer visits the Home Page
+ In order to read the page
+ As a viewer
+ I want to see the home page of my app
+
+ Scenario: View home page
+ Given I am on the home page
+ Then I should see "Welcome!"
+ And I should see "Follow the steps below to import your bookmarks:"
@@ -0,0 +1,7 @@
+Given /^I am on the home page$/ do
+ visit "/"
+end
+
+Then /^I should see "([^"]*)"$/ do |text|
+ page.should have_content text
+end
View
@@ -0,0 +1,12 @@
+require_relative "../../gimmelicious"
+
+require "Capybara"
+require "Capybara/cucumber"
+require "rspec"
+
+World do
+ Capybara.app = Gimmelicious
+
+ include Capybara::DSL
+ include RSpec::Matchers
+end
View
@@ -1,3 +1,18 @@
-%p welcome
+%p.alert-message.info
+ %strong Welcome!
+ Follow the steps below to import your bookmarks:
-%a{:href => "/gimmebar/auth"} Sign in
+%div.well
+ %h2 1) Authenticate with gimmebar:
+ %a{:href => "/gimmebar/auth"} Sign in
+
+%div.well
+ %h2.disabled 2) Load your delicious bookmarks:
+ %form
+ %input{:type => "file"}
+
+%div.well
+ %h2.disabled 3) Select your import settings:
+ %form.form-stacked
+ %div.actions
+ %input{:type => "submit", :class => "btn primary large", :value => "Import!"}
View
@@ -5,9 +5,13 @@
%meta{:charset => "utf-8"}
%link{:rel => "stylesheet", :href => "http://twitter.github.com/bootstrap/assets/css/bootstrap-1.2.0.min.css"}
%body
- %div.container
+ %div.container{:style => "margin-top:30px;"}
%div.page-header
%h1
Gimmelicious
%small Import your delicious bookmarks to gimmebar.
- =yield
+ =yield
+ %footer{:style => "margin-top:30px;"}
+ %p
+ Developed with ♥ by
+ %a{:href => "http://www.daviferreira.com"} Davi Ferreira

0 comments on commit a58106a

Please sign in to comment.