Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

First tests plus skeleton.

  • Loading branch information...
commit a58106a6c000049af2be7d84b9ee1191e42791f9 1 parent d3682d0
@daviferreira authored
View
9 features/home_page.feature
@@ -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:"
View
7 features/step_definitions/gimmelicious_steps.rb
@@ -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
12 features/support/env.rb
@@ -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
19 views/index.haml
@@ -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
8 views/layout.haml
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.