This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "selenium-webdriver" | |
require "test/unit" | |
class FindPricingPage < Test::Unit::TestCase | |
def setup | |
@driver = Selenium::WebDriver.for :firefox | |
@base_url = "http://staging.youeye.com/" | |
@driver.manage.timeouts.implicit_wait = 30 | |
@verification_errors = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
gem "rspec" | |
gem "selenium-client" | |
require "selenium/client" | |
require "selenium/rspec/spec_helper" | |
require "spec/test/unit" | |
describe "Find Pricing Page" do | |
attr_reader :selenium_driver | |
alias :page :selenium_driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "selenium/client" | |
require "selenium/rspec/spec_helper" | |
describe "Find Pricing Page" do | |
attr_reader :selenium_driver | |
alias :page :selenium_driver | |
before(:all) do | |
@verification_errors = [] | |
@selenium_driver = Selenium::Client::Driver.new \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "selenium/client" | |
require "selenium/rspec/spec_helper" | |
describe "${className}" do | |
attr_reader :selenium_driver | |
alias :${receiver} :selenium_driver | |
before(:all) do | |
@verification_errors = [] | |
@selenium_driver = Selenium::Client::Driver.new \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
require "selenium/client" | |
require "selenium-webdriver" | |
describe "Pricing Page Exists" do | |
attr_reader :selenium_driver | |
alias :page :selenium_driver | |
before(:all) do | |
@verification_errors = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec/ruby" | |
require "spec/runner" | |
# output T/F as Green/Red | |
ENV['RSPEC_COLOR'] = 'true' | |
require File.join(File.dirname(__FILE__), "Website/pricing-page-exists") | |
require File.join(File.dirname(__FILE__), "Website/about-page-exists") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
require "selenium/client" | |
require "selenium-webdriver" | |
describe "Pricing Page Exists" do | |
attr_reader :selenium_driver | |
alias :page :selenium_driver | |
before(:all) do | |
@verification_errors = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
require "selenium/client" | |
require "selenium-webdriver" | |
describe "Pricing Page Exists" do | |
attr_reader :selenium_driver | |
alias :page :selenium_driver | |
before(:all) do | |
@verification_errors = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update | |
@admin = Admin::Admin.find(params[:id]) | |
respond_to do |format| | |
if params[:admin_admin][:change_password] | |
#call update_password here | |
else | |
if @admin.update_attributes(params[:admin_admin]) | |
flash[:success] = "'#{@admin.name}' was successfully updated." | |
format.html { redirect_to admin_admins_path } |
OlderNewer