Skip to content

Instantly share code, notes, and snippets.

@easonhan007
easonhan007 / rspec_assert.rb
Last active December 17, 2015 04:49
rspec断言
a = true
a.should be_true
a = 1
a.should eq(1)
a.should eql(1)
a = 'abc'
a.should include('a')
a.should include('b')
@easonhan007
easonhan007 / start_browser.py
Created May 10, 2013 06:57
使用python+selenium webdriver启动浏览器
from selenium import webdriver
webdriver.Ie()
@easonhan007
easonhan007 / start_browser.rb
Created May 10, 2013 06:29
使用ruby及selenium-webdriver启动ie浏览器
require 'selenium-webdriver'
Selenium::WebDriver.for :ie