summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--tests/acceptance/features/create_new.feature13
-rw-r--r--tests/acceptance/features/step_definitions/create_new_steps.rb7
3 files changed, 21 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c711f82a9..eae79e2a0 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,6 @@
# release for the app store and running php unittests which require core
build_directory=build/
-app_name=news
package_name=$(build_directory)$(app_name)
all: dist
@@ -30,7 +29,7 @@ clean:
rm -rf $(build_directory)
-dist: clean test
+dist: clean
mkdir -p $(build_directory)
git archive HEAD --format=zip --prefix=$(app_name)/ > $(package_name).zip
diff --git a/tests/acceptance/features/create_new.feature b/tests/acceptance/features/create_new.feature
new file mode 100644
index 000000000..c07220059
--- /dev/null
+++ b/tests/acceptance/features/create_new.feature
@@ -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 \ No newline at end of file
diff --git a/tests/acceptance/features/step_definitions/create_new_steps.rb b/tests/acceptance/features/step_definitions/create_new_steps.rb
new file mode 100644
index 000000000..337779d54
--- /dev/null
+++ b/tests/acceptance/features/step_definitions/create_new_steps.rb
@@ -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 \ No newline at end of file