Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Support 1.9: # encoding: utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
holizz committed Oct 5, 2010
1 parent b3b5fab commit 387f87f
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/features/step_definitions/webrat_steps.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths")) require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))


# Commonly used webrat steps # Commonly used webrat steps
Expand Down
2 changes: 2 additions & 0 deletions examples/features/support/env.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

# #
# All the standard stuff # All the standard stuff
# #
Expand Down
2 changes: 2 additions & 0 deletions examples/features/support/paths.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'cucumber-wordpress' require 'cucumber-wordpress'


module NavigationHelpers module NavigationHelpers
Expand Down
2 changes: 2 additions & 0 deletions lib/cucumber-wordpress.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'singleton' require 'singleton'
require 'fileutils' require 'fileutils'
require 'uri' require 'uri'
Expand Down
2 changes: 2 additions & 0 deletions lib/cucumber-wordpress/path_to.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

class WordPress class WordPress
def path_to(page_name) def path_to(page_name)
partial = case page_name partial = case page_name
Expand Down
2 changes: 2 additions & 0 deletions lib/cucumber-wordpress/steps.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

def see? content def see? content
see_within? '.', content see_within? '.', content
end end
Expand Down
2 changes: 2 additions & 0 deletions lib/cucumber-wordpress/steps/given.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

Given /^WordPress is installed$/ do Given /^WordPress is installed$/ do
visit path_to 'homepage' visit path_to 'homepage'
title = 'A Very Boring Test Title' title = 'A Very Boring Test Title'
Expand Down
2 changes: 2 additions & 0 deletions lib/cucumber-wordpress/steps/should.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

Then /^plugin "([^\"]*)" should be (enabled|disabled)$/ do |plugin,able| Then /^plugin "([^\"]*)" should be (enabled|disabled)$/ do |plugin,able|
Given 'I am logged in as "admin"' Given 'I am logged in as "admin"'
Given 'I am on plugins' Given 'I am on plugins'
Expand Down
2 changes: 2 additions & 0 deletions lib/cucumber-wordpress/webrat-patches.rb
@@ -1,3 +1,5 @@
# encoding: utf-8

require 'rspec/mocks/spec_methods' require 'rspec/mocks/spec_methods'
# #
# Let's fix a few bugs in Webrat! # Let's fix a few bugs in Webrat!
Expand Down

0 comments on commit 387f87f

Please sign in to comment.