added first cucumber steps and definitions

This commit is contained in:
Bernhard Posselt 2013-05-07 13:06:39 +02:00
Родитель 0d56e6e7e4
Коммит e52e9332df
3 изменённых файлов: 21 добавлений и 2 удалений

Просмотреть файл

@ -20,7 +20,6 @@
# release for the app store and running php unittests which require core # release for the app store and running php unittests which require core
build_directory=build/ build_directory=build/
app_name=news
package_name=$(build_directory)$(app_name) package_name=$(build_directory)$(app_name)
all: dist all: dist
@ -30,7 +29,7 @@ clean:
rm -rf $(build_directory) rm -rf $(build_directory)
dist: clean test dist: clean
mkdir -p $(build_directory) mkdir -p $(build_directory)
git archive HEAD --format=zip --prefix=$(app_name)/ > $(package_name).zip git archive HEAD --format=zip --prefix=$(app_name)/ > $(package_name).zip

Просмотреть файл

@ -0,0 +1,13 @@
# encoding: utf-8
Feature: create_new
In order to start using the news rss reader
As a user
I want to be able to add feeds and folders
Background:
Given I am logged in
And I am in the "news" app
Scenario Outline: show caption on hover
When I hover over the add new button
Then I should see a "Add Website" caption on the add new button

Просмотреть файл

@ -0,0 +1,7 @@
When (/^I hover over the add new button$/) do |selector|
page.execute_script("$('.add-new').trigger('mouseover')")
end
Then (/^I should see a "([^"]*)" caption on the add new button"$/) do |caption|
page.find(:xpath, "//*[@class='add-new']/a/span").should have_content(caption)
end