sum 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Capfile +3 -0
- data/MIT-LICENSE +18 -0
- data/README.markdown +69 -0
- data/Rakefile +56 -0
- data/config.ru +3 -0
- data/config/database.example.yml +10 -0
- data/config/deploy.example.rb +36 -0
- data/config/externals.yml +18 -0
- data/config/mail.example.yml +32 -0
- data/config/schedule.rb +20 -0
- data/db/migrate/001_users.rb +22 -0
- data/db/migrate/002_user_emails.rb +15 -0
- data/features/front_page.feature +15 -0
- data/features/read_email.feature +445 -0
- data/features/receive_email.feature +59 -0
- data/features/step_definitions/email.rb +52 -0
- data/features/step_definitions/given.rb +60 -0
- data/features/step_definitions/then.rb +36 -0
- data/features/step_definitions/when.rb +46 -0
- data/features/support/env.rb +38 -0
- data/features/support/helpers.rb +50 -0
- data/features/support/rspec.rb +11 -0
- data/features/support/webrat.rb +3 -0
- data/features/update_user.feature +83 -0
- data/gemspec.rb +45 -0
- data/lib/sum.rb +30 -0
- data/lib/sum/boot.rb +29 -0
- data/lib/sum/controller/cron.rb +12 -0
- data/lib/sum/controller/front.rb +6 -0
- data/lib/sum/controller/new.rb +15 -0
- data/lib/sum/helper/application.rb +8 -0
- data/lib/sum/helper/cron.rb +12 -0
- data/lib/sum/helper/new.rb +27 -0
- data/lib/sum/model/incoming_mail.rb +89 -0
- data/lib/sum/model/user.rb +298 -0
- data/lib/sum/model/user_email.rb +31 -0
- data/lib/sum/view/email.haml +70 -0
- data/lib/sum/view/field.haml +23 -0
- data/lib/sum/view/form.haml +13 -0
- data/lib/sum/view/front.haml +29 -0
- data/lib/sum/view/layout.haml +26 -0
- data/lib/sum/view/new.haml +5 -0
- data/lib/sum/view/success.haml +14 -0
- data/lib/sum/view/tos.haml +3 -0
- data/public/image/1.png +0 -0
- data/public/image/2.png +0 -0
- data/public/image/3.png +0 -0
- data/public/image/bg.png +0 -0
- data/public/image/bot.png +0 -0
- data/public/image/facebox/b.png +0 -0
- data/public/image/facebox/bl.png +0 -0
- data/public/image/facebox/br.png +0 -0
- data/public/image/facebox/closelabel.gif +0 -0
- data/public/image/facebox/loading.gif +0 -0
- data/public/image/facebox/tl.png +0 -0
- data/public/image/facebox/tr.png +0 -0
- data/public/image/favicon.png +0 -0
- data/public/image/field_off.png +0 -0
- data/public/image/field_on.png +0 -0
- data/public/image/ribbon.png +0 -0
- data/public/image/screenshot_receive.png +0 -0
- data/public/image/screenshot_send.png +0 -0
- data/public/image/submit.png +0 -0
- data/public/image/top.png +0 -0
- data/public/javascript/facebox.js +319 -0
- data/public/javascript/jquery-1.3.2.js +19 -0
- data/public/javascript/sum.js +13 -0
- data/public/style/facebox.css +95 -0
- data/public/style/ie.css +35 -0
- data/public/style/print.css +30 -0
- data/public/style/screen.css +256 -0
- data/public/style/sum.css +119 -0
- data/public/style/sum.less +159 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +59 -0
- data/spec/sum/model/incoming_mail_spec.rb +106 -0
- data/spec/sum/model/user_spec.rb +172 -0
- data/sum.gemspec +69 -0
- data/vendor/webrat/History.txt +358 -0
- data/vendor/webrat/MIT-LICENSE.txt +19 -0
- data/vendor/webrat/README.rdoc +85 -0
- data/vendor/webrat/Rakefile +200 -0
- data/vendor/webrat/install.rb +1 -0
- data/vendor/webrat/lib/webrat.rb +31 -0
- data/vendor/webrat/lib/webrat/core.rb +14 -0
- data/vendor/webrat/lib/webrat/core/configuration.rb +102 -0
- data/vendor/webrat/lib/webrat/core/elements/area.rb +31 -0
- data/vendor/webrat/lib/webrat/core/elements/element.rb +33 -0
- data/vendor/webrat/lib/webrat/core/elements/field.rb +409 -0
- data/vendor/webrat/lib/webrat/core/elements/form.rb +103 -0
- data/vendor/webrat/lib/webrat/core/elements/label.rb +31 -0
- data/vendor/webrat/lib/webrat/core/elements/link.rb +93 -0
- data/vendor/webrat/lib/webrat/core/elements/select_option.rb +35 -0
- data/vendor/webrat/lib/webrat/core/locators.rb +20 -0
- data/vendor/webrat/lib/webrat/core/locators/area_locator.rb +38 -0
- data/vendor/webrat/lib/webrat/core/locators/button_locator.rb +54 -0
- data/vendor/webrat/lib/webrat/core/locators/field_by_id_locator.rb +37 -0
- data/vendor/webrat/lib/webrat/core/locators/field_labeled_locator.rb +56 -0
- data/vendor/webrat/lib/webrat/core/locators/field_locator.rb +25 -0
- data/vendor/webrat/lib/webrat/core/locators/field_named_locator.rb +41 -0
- data/vendor/webrat/lib/webrat/core/locators/form_locator.rb +19 -0
- data/vendor/webrat/lib/webrat/core/locators/label_locator.rb +34 -0
- data/vendor/webrat/lib/webrat/core/locators/link_locator.rb +74 -0
- data/vendor/webrat/lib/webrat/core/locators/locator.rb +20 -0
- data/vendor/webrat/lib/webrat/core/locators/select_option_locator.rb +59 -0
- data/vendor/webrat/lib/webrat/core/logging.rb +24 -0
- data/vendor/webrat/lib/webrat/core/matchers.rb +4 -0
- data/vendor/webrat/lib/webrat/core/matchers/have_content.rb +73 -0
- data/vendor/webrat/lib/webrat/core/matchers/have_selector.rb +74 -0
- data/vendor/webrat/lib/webrat/core/matchers/have_tag.rb +21 -0
- data/vendor/webrat/lib/webrat/core/matchers/have_xpath.rb +147 -0
- data/vendor/webrat/lib/webrat/core/methods.rb +63 -0
- data/vendor/webrat/lib/webrat/core/mime.rb +29 -0
- data/vendor/webrat/lib/webrat/core/save_and_open_page.rb +48 -0
- data/vendor/webrat/lib/webrat/core/scope.rb +350 -0
- data/vendor/webrat/lib/webrat/core/session.rb +299 -0
- data/vendor/webrat/lib/webrat/core/xml.rb +115 -0
- data/vendor/webrat/lib/webrat/core/xml/hpricot.rb +19 -0
- data/vendor/webrat/lib/webrat/core/xml/nokogiri.rb +76 -0
- data/vendor/webrat/lib/webrat/core/xml/rexml.rb +24 -0
- data/vendor/webrat/lib/webrat/core_extensions/blank.rb +58 -0
- data/vendor/webrat/lib/webrat/core_extensions/deprecate.rb +8 -0
- data/vendor/webrat/lib/webrat/core_extensions/detect_mapped.rb +12 -0
- data/vendor/webrat/lib/webrat/core_extensions/meta_class.rb +6 -0
- data/vendor/webrat/lib/webrat/core_extensions/nil_to_param.rb +5 -0
- data/vendor/webrat/lib/webrat/core_extensions/tcp_socket.rb +27 -0
- data/vendor/webrat/lib/webrat/mechanize.rb +74 -0
- data/vendor/webrat/lib/webrat/merb.rb +9 -0
- data/vendor/webrat/lib/webrat/merb_multipart_support.rb +27 -0
- data/vendor/webrat/lib/webrat/merb_session.rb +82 -0
- data/vendor/webrat/lib/webrat/rack.rb +25 -0
- data/vendor/webrat/lib/webrat/rails.rb +106 -0
- data/vendor/webrat/lib/webrat/rspec-rails.rb +10 -0
- data/vendor/webrat/lib/webrat/selenium.rb +81 -0
- data/vendor/webrat/lib/webrat/selenium/application_server_factory.rb +40 -0
- data/vendor/webrat/lib/webrat/selenium/application_servers.rb +5 -0
- data/vendor/webrat/lib/webrat/selenium/application_servers/base.rb +46 -0
- data/vendor/webrat/lib/webrat/selenium/application_servers/external.rb +26 -0
- data/vendor/webrat/lib/webrat/selenium/application_servers/merb.rb +50 -0
- data/vendor/webrat/lib/webrat/selenium/application_servers/rails.rb +44 -0
- data/vendor/webrat/lib/webrat/selenium/application_servers/sinatra.rb +37 -0
- data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/button.js +19 -0
- data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/label.js +16 -0
- data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webrat.js +5 -0
- data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratlink.js +12 -0
- data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratlinkwithin.js +15 -0
- data/vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratselectwithoption.js +5 -0
- data/vendor/webrat/lib/webrat/selenium/matchers.rb +4 -0
- data/vendor/webrat/lib/webrat/selenium/matchers/have_content.rb +66 -0
- data/vendor/webrat/lib/webrat/selenium/matchers/have_selector.rb +49 -0
- data/vendor/webrat/lib/webrat/selenium/matchers/have_tag.rb +72 -0
- data/vendor/webrat/lib/webrat/selenium/matchers/have_xpath.rb +45 -0
- data/vendor/webrat/lib/webrat/selenium/selenium_extensions.js +6 -0
- data/vendor/webrat/lib/webrat/selenium/selenium_rc_server.rb +84 -0
- data/vendor/webrat/lib/webrat/selenium/selenium_session.rb +248 -0
- data/vendor/webrat/lib/webrat/selenium/silence_stream.rb +18 -0
- data/vendor/webrat/lib/webrat/sinatra.rb +11 -0
- data/vendor/webrat/spec/fakes/test_session.rb +34 -0
- data/vendor/webrat/spec/integration/merb/Rakefile +35 -0
- data/vendor/webrat/spec/integration/merb/app/controllers/application.rb +2 -0
- data/vendor/webrat/spec/integration/merb/app/controllers/exceptions.rb +13 -0
- data/vendor/webrat/spec/integration/merb/app/controllers/testing.rb +27 -0
- data/vendor/webrat/spec/integration/merb/app/views/exceptions/not_acceptable.html.erb +63 -0
- data/vendor/webrat/spec/integration/merb/app/views/exceptions/not_found.html.erb +47 -0
- data/vendor/webrat/spec/integration/merb/app/views/layout/application.html.erb +12 -0
- data/vendor/webrat/spec/integration/merb/app/views/testing/show_form.html.erb +27 -0
- data/vendor/webrat/spec/integration/merb/app/views/testing/upload.html.erb +9 -0
- data/vendor/webrat/spec/integration/merb/config/environments/development.rb +15 -0
- data/vendor/webrat/spec/integration/merb/config/environments/rake.rb +11 -0
- data/vendor/webrat/spec/integration/merb/config/environments/test.rb +14 -0
- data/vendor/webrat/spec/integration/merb/config/init.rb +25 -0
- data/vendor/webrat/spec/integration/merb/config/rack.rb +11 -0
- data/vendor/webrat/spec/integration/merb/config/router.rb +34 -0
- data/vendor/webrat/spec/integration/merb/spec/spec.opts +1 -0
- data/vendor/webrat/spec/integration/merb/spec/spec_helper.rb +24 -0
- data/vendor/webrat/spec/integration/merb/spec/webrat_spec.rb +39 -0
- data/vendor/webrat/spec/integration/merb/tasks/merb.thor/app_script.rb +31 -0
- data/vendor/webrat/spec/integration/merb/tasks/merb.thor/common.rb +64 -0
- data/vendor/webrat/spec/integration/merb/tasks/merb.thor/gem_ext.rb +124 -0
- data/vendor/webrat/spec/integration/merb/tasks/merb.thor/main.thor +150 -0
- data/vendor/webrat/spec/integration/merb/tasks/merb.thor/ops.rb +93 -0
- data/vendor/webrat/spec/integration/merb/tasks/merb.thor/utils.rb +40 -0
- data/vendor/webrat/spec/integration/rack/Rakefile +5 -0
- data/vendor/webrat/spec/integration/rack/app.rb +73 -0
- data/vendor/webrat/spec/integration/rack/test/helper.rb +20 -0
- data/vendor/webrat/spec/integration/rack/test/webrat_rack_test.rb +62 -0
- data/vendor/webrat/spec/integration/rails/Rakefile +30 -0
- data/vendor/webrat/spec/integration/rails/app/controllers/application.rb +15 -0
- data/vendor/webrat/spec/integration/rails/app/controllers/buttons_controller.rb +7 -0
- data/vendor/webrat/spec/integration/rails/app/controllers/fields_controller.rb +4 -0
- data/vendor/webrat/spec/integration/rails/app/controllers/links_controller.rb +7 -0
- data/vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb +43 -0
- data/vendor/webrat/spec/integration/rails/app/helpers/buttons_helper.rb +2 -0
- data/vendor/webrat/spec/integration/rails/app/helpers/fields_helper.rb +2 -0
- data/vendor/webrat/spec/integration/rails/app/helpers/links_helper.rb +2 -0
- data/vendor/webrat/spec/integration/rails/app/views/buttons/show.html.erb +11 -0
- data/vendor/webrat/spec/integration/rails/app/views/fields/show.html.erb +9 -0
- data/vendor/webrat/spec/integration/rails/app/views/links/show.html.erb +5 -0
- data/vendor/webrat/spec/integration/rails/app/views/webrat/before_redirect_form.html.erb +4 -0
- data/vendor/webrat/spec/integration/rails/app/views/webrat/buttons.html.erb +11 -0
- data/vendor/webrat/spec/integration/rails/app/views/webrat/form.html.erb +28 -0
- data/vendor/webrat/spec/integration/rails/config/boot.rb +109 -0
- data/vendor/webrat/spec/integration/rails/config/environment.rb +12 -0
- data/vendor/webrat/spec/integration/rails/config/environments/development.rb +17 -0
- data/vendor/webrat/spec/integration/rails/config/environments/selenium.rb +22 -0
- data/vendor/webrat/spec/integration/rails/config/environments/test.rb +22 -0
- data/vendor/webrat/spec/integration/rails/config/initializers/inflections.rb +10 -0
- data/vendor/webrat/spec/integration/rails/config/initializers/mime_types.rb +5 -0
- data/vendor/webrat/spec/integration/rails/config/initializers/new_rails_defaults.rb +17 -0
- data/vendor/webrat/spec/integration/rails/config/locales/en.yml +5 -0
- data/vendor/webrat/spec/integration/rails/config/routes.rb +18 -0
- data/vendor/webrat/spec/integration/rails/public/404.html +30 -0
- data/vendor/webrat/spec/integration/rails/public/422.html +30 -0
- data/vendor/webrat/spec/integration/rails/public/500.html +33 -0
- data/vendor/webrat/spec/integration/rails/script/about +4 -0
- data/vendor/webrat/spec/integration/rails/script/console +3 -0
- data/vendor/webrat/spec/integration/rails/script/dbconsole +3 -0
- data/vendor/webrat/spec/integration/rails/script/destroy +3 -0
- data/vendor/webrat/spec/integration/rails/script/generate +3 -0
- data/vendor/webrat/spec/integration/rails/script/performance/benchmarker +3 -0
- data/vendor/webrat/spec/integration/rails/script/performance/profiler +3 -0
- data/vendor/webrat/spec/integration/rails/script/performance/request +3 -0
- data/vendor/webrat/spec/integration/rails/script/plugin +3 -0
- data/vendor/webrat/spec/integration/rails/script/process/inspector +3 -0
- data/vendor/webrat/spec/integration/rails/script/process/reaper +3 -0
- data/vendor/webrat/spec/integration/rails/script/process/spawner +3 -0
- data/vendor/webrat/spec/integration/rails/script/runner +3 -0
- data/vendor/webrat/spec/integration/rails/script/server +3 -0
- data/vendor/webrat/spec/integration/rails/test/integration/button_click_test.rb +80 -0
- data/vendor/webrat/spec/integration/rails/test/integration/fill_in_test.rb +24 -0
- data/vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb +27 -0
- data/vendor/webrat/spec/integration/rails/test/integration/webrat_test.rb +97 -0
- data/vendor/webrat/spec/integration/rails/test/test_helper.rb +25 -0
- data/vendor/webrat/spec/integration/sinatra/Rakefile +5 -0
- data/vendor/webrat/spec/integration/sinatra/classic_app.rb +64 -0
- data/vendor/webrat/spec/integration/sinatra/modular_app.rb +16 -0
- data/vendor/webrat/spec/integration/sinatra/test/classic_app_test.rb +37 -0
- data/vendor/webrat/spec/integration/sinatra/test/modular_app_test.rb +18 -0
- data/vendor/webrat/spec/integration/sinatra/test/test_helper.rb +16 -0
- data/vendor/webrat/spec/private/core/configuration_spec.rb +116 -0
- data/vendor/webrat/spec/private/core/field_spec.rb +85 -0
- data/vendor/webrat/spec/private/core/link_spec.rb +24 -0
- data/vendor/webrat/spec/private/core/logging_spec.rb +10 -0
- data/vendor/webrat/spec/private/core/session_spec.rb +195 -0
- data/vendor/webrat/spec/private/mechanize/mechanize_session_spec.rb +81 -0
- data/vendor/webrat/spec/private/merb/attaches_file_spec.rb +93 -0
- data/vendor/webrat/spec/private/merb/merb_session_spec.rb +61 -0
- data/vendor/webrat/spec/private/nokogiri_spec.rb +77 -0
- data/vendor/webrat/spec/private/rails/attaches_file_spec.rb +81 -0
- data/vendor/webrat/spec/private/rails/rails_session_spec.rb +112 -0
- data/vendor/webrat/spec/private/selenium/application_servers/rails_spec.rb +26 -0
- data/vendor/webrat/spec/public/basic_auth_spec.rb +24 -0
- data/vendor/webrat/spec/public/check_spec.rb +191 -0
- data/vendor/webrat/spec/public/choose_spec.rb +118 -0
- data/vendor/webrat/spec/public/click_area_spec.rb +106 -0
- data/vendor/webrat/spec/public/click_button_spec.rb +496 -0
- data/vendor/webrat/spec/public/click_link_spec.rb +511 -0
- data/vendor/webrat/spec/public/fill_in_spec.rb +209 -0
- data/vendor/webrat/spec/public/locators/field_by_xpath_spec.rb +19 -0
- data/vendor/webrat/spec/public/locators/field_labeled_spec.rb +172 -0
- data/vendor/webrat/spec/public/locators/field_with_id_spec.rb +16 -0
- data/vendor/webrat/spec/public/matchers/contain_spec.rb +114 -0
- data/vendor/webrat/spec/public/matchers/have_selector_spec.rb +142 -0
- data/vendor/webrat/spec/public/matchers/have_tag_spec.rb +39 -0
- data/vendor/webrat/spec/public/matchers/have_xpath_spec.rb +136 -0
- data/vendor/webrat/spec/public/reload_spec.rb +10 -0
- data/vendor/webrat/spec/public/save_and_open_spec.rb +70 -0
- data/vendor/webrat/spec/public/select_date_spec.rb +112 -0
- data/vendor/webrat/spec/public/select_datetime_spec.rb +137 -0
- data/vendor/webrat/spec/public/select_spec.rb +249 -0
- data/vendor/webrat/spec/public/select_time_spec.rb +100 -0
- data/vendor/webrat/spec/public/selenium/application_server_factory_spec.rb +49 -0
- data/vendor/webrat/spec/public/selenium/application_servers/external_spec.rb +12 -0
- data/vendor/webrat/spec/public/selenium/selenium_session_spec.rb +37 -0
- data/vendor/webrat/spec/public/set_hidden_field_spec.rb +5 -0
- data/vendor/webrat/spec/public/submit_form_spec.rb +5 -0
- data/vendor/webrat/spec/public/visit_spec.rb +58 -0
- data/vendor/webrat/spec/public/within_spec.rb +177 -0
- data/vendor/webrat/spec/rcov.opts +1 -0
- data/vendor/webrat/spec/spec.opts +2 -0
- data/vendor/webrat/spec/spec_helper.rb +50 -0
- metadata +474 -0
@@ -0,0 +1,172 @@
|
|
1
|
+
require 'erb'
|
2
|
+
require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper")
|
3
|
+
|
4
|
+
describe User do
|
5
|
+
describe "creation" do
|
6
|
+
|
7
|
+
before(:all) do
|
8
|
+
@user = create_valid_user
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should populate record attributes properly" do
|
12
|
+
@user.email.should == "cucumber@sumapp.com"
|
13
|
+
@user.recent_transactions.should == nil
|
14
|
+
@user.savings_goal.should == 500.02
|
15
|
+
@user.spending_goal.should == 1000.50
|
16
|
+
@user.spent_this_month.should == 0.00
|
17
|
+
@user.temporary_spending_cut.should == 0.00
|
18
|
+
@user.timezone_offset.should == -25200
|
19
|
+
@user.send_at.to_s.should == @user.send(:local_12am_to_server_time).to_s
|
20
|
+
@user.reset_at.to_s.should == (@user.send_at + 1.month).to_s
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should set send_at to today at 12am (local time)" do
|
24
|
+
send_at = @user.send_at + @user.timezone_offset
|
25
|
+
now = Time.now.utc + @user.timezone_offset
|
26
|
+
send_at.day.should == now.day
|
27
|
+
send_at.hour.should == 0
|
28
|
+
send_at.min.should == 0
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should reset balances one month from send_at" do
|
32
|
+
@user.reset_at.should == @user.send_at + 1.month
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should only save the last five transactions" do
|
36
|
+
@user.recent_transactions = Array.new(6)
|
37
|
+
@user.save
|
38
|
+
@user.recent_transactions.length.should == 5
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should make the savings goal equal to savings" do
|
42
|
+
@user.savings_goal.should == @user.savings
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should make the spending goal equal to income minus bills minus savings" do
|
46
|
+
@user.spending_goal.should == @user.income - @user.bills - @user.savings
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe "reset!" do
|
51
|
+
|
52
|
+
before(:all) do
|
53
|
+
@user = create_valid_user
|
54
|
+
@user.spend!(1500.53)
|
55
|
+
@old_reset_at = @user.reset_at
|
56
|
+
@user.reset!
|
57
|
+
end
|
58
|
+
|
59
|
+
it "should set temporary_spending_cut to amount gone into debt" do
|
60
|
+
@user.send(:two_decimals, @user.temporary_spending_cut).should == 0.01
|
61
|
+
end
|
62
|
+
|
63
|
+
it "should set spent_this_month to zero" do
|
64
|
+
@user.send(:two_decimals, @user.temporary_spending_cut).should == 0.01
|
65
|
+
end
|
66
|
+
|
67
|
+
it "should add a month to reset_at" do
|
68
|
+
@user.reset_at.should == @old_reset_at + 1.month
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe "reset_spent_today!" do
|
73
|
+
|
74
|
+
before(:all) do
|
75
|
+
@user = create_valid_user
|
76
|
+
@user.spend!(1.0)
|
77
|
+
@user.reset_spent_today!
|
78
|
+
end
|
79
|
+
|
80
|
+
it "should set spent_today to zero" do
|
81
|
+
@user.spent_today.should == 0
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe "sent!" do
|
86
|
+
|
87
|
+
before(:all) do
|
88
|
+
@user = create_valid_user
|
89
|
+
@old_send_at = @user.send_at
|
90
|
+
@user.sent!
|
91
|
+
end
|
92
|
+
|
93
|
+
it "should set send_now to false" do
|
94
|
+
@user.send_now.should == false
|
95
|
+
end
|
96
|
+
|
97
|
+
it "should add one day to send_at" do
|
98
|
+
@user.send_at.should == @old_send_at + 1.day
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe "spend!" do
|
103
|
+
|
104
|
+
before(:all) do
|
105
|
+
@user = create_valid_user
|
106
|
+
@user.spend!(1.00)
|
107
|
+
end
|
108
|
+
|
109
|
+
it "should add the number to the user's recent transactions" do
|
110
|
+
@user.recent_transactions.should == [ 1.0 ]
|
111
|
+
end
|
112
|
+
|
113
|
+
it "should add the number to the user's monthly spending total" do
|
114
|
+
@user.spent_this_month.should == 1.00
|
115
|
+
end
|
116
|
+
|
117
|
+
it "should add the number to the user's daily spending total" do
|
118
|
+
@user.spent_today.should == 1.00
|
119
|
+
end
|
120
|
+
|
121
|
+
it "should set send_now to true" do
|
122
|
+
@user.send_now.should == true
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
describe "errors" do
|
127
|
+
|
128
|
+
before(:all) do
|
129
|
+
@user = User.create(
|
130
|
+
:email => "",
|
131
|
+
:bills => "",
|
132
|
+
:income => "test",
|
133
|
+
:savings => "0"
|
134
|
+
)
|
135
|
+
end
|
136
|
+
|
137
|
+
it "should create errors on the proper attributes" do
|
138
|
+
@user.errors.on(:email).should == "can't be blank"
|
139
|
+
@user.errors.on(:bills).should == 'is not a number'
|
140
|
+
@user.errors.on(:income).should == 'is not a number'
|
141
|
+
@user.errors.on(:savings).nil?.should == true
|
142
|
+
@user.email = 'test'
|
143
|
+
@user.valid?
|
144
|
+
@user.errors.on(:email).should == 'is invalid'
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
describe "attribute protection" do
|
149
|
+
|
150
|
+
before(:all) do
|
151
|
+
@user = User.create(
|
152
|
+
:email => "cucumber@sumapp.com",
|
153
|
+
:bills => "1000.02",
|
154
|
+
:income => "2500.54",
|
155
|
+
:savings => "500.02",
|
156
|
+
:timezone_offset => "-25200",
|
157
|
+
:temporary_spending_cut => 5000,
|
158
|
+
:tos => '1',
|
159
|
+
:send_at => Time.now.utc
|
160
|
+
)
|
161
|
+
@user.update_attributes(
|
162
|
+
:temporary_spending_cut => 5000,
|
163
|
+
:send_at => Time.now.utc
|
164
|
+
)
|
165
|
+
end
|
166
|
+
|
167
|
+
it "shouldn't assign protected attributes" do
|
168
|
+
@user.temporary_spending_cut.should == 0.00
|
169
|
+
@user.send_at.to_s.should == @user.send(:local_12am_to_server_time).to_s
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
data/sum.gemspec
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{sum}
|
5
|
+
s.version = "0.1.1"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Winton Welsh"]
|
9
|
+
s.date = %q{2009-08-04}
|
10
|
+
s.email = %q{mail@wintoni.us}
|
11
|
+
s.extra_rdoc_files = ["README.markdown"]
|
12
|
+
s.files = ["Capfile", "config", "config/database.example.yml", "config/deploy.example.rb", "config/externals.yml", "config/mail.example.yml", "config/schedule.rb", "config.ru", "db", "db/migrate", "db/migrate/001_users.rb", "db/migrate/002_user_emails.rb", "features", "features/front_page.feature", "features/read_email.feature", "features/receive_email.feature", "features/step_definitions", "features/step_definitions/email.rb", "features/step_definitions/given.rb", "features/step_definitions/then.rb", "features/step_definitions/when.rb", "features/support", "features/support/env.rb", "features/support/helpers.rb", "features/support/rspec.rb", "features/support/webrat.rb", "features/update_user.feature", "gemspec.rb", "lib", "lib/sum", "lib/sum/boot.rb", "lib/sum/controller", "lib/sum/controller/cron.rb", "lib/sum/controller/front.rb", "lib/sum/controller/new.rb", "lib/sum/helper", "lib/sum/helper/application.rb", "lib/sum/helper/cron.rb", "lib/sum/helper/new.rb", "lib/sum/model", "lib/sum/model/incoming_mail.rb", "lib/sum/model/user.rb", "lib/sum/model/user_email.rb", "lib/sum/view", "lib/sum/view/email.haml", "lib/sum/view/field.haml", "lib/sum/view/form.haml", "lib/sum/view/front.haml", "lib/sum/view/layout.haml", "lib/sum/view/new.haml", "lib/sum/view/success.haml", "lib/sum/view/tos.haml", "lib/sum.rb", "MIT-LICENSE", "public", "public/image", "public/image/1.png", "public/image/2.png", "public/image/3.png", "public/image/bg.png", "public/image/bot.png", "public/image/facebox", "public/image/facebox/b.png", "public/image/facebox/bl.png", "public/image/facebox/br.png", "public/image/facebox/closelabel.gif", "public/image/facebox/loading.gif", "public/image/facebox/tl.png", "public/image/facebox/tr.png", "public/image/favicon.png", "public/image/field_off.png", "public/image/field_on.png", "public/image/ribbon.png", "public/image/screenshot_receive.png", "public/image/screenshot_send.png", "public/image/submit.png", "public/image/top.png", "public/javascript", "public/javascript/facebox.js", "public/javascript/jquery-1.3.2.js", "public/javascript/sum.js", "public/style", "public/style/facebox.css", "public/style/ie.css", "public/style/print.css", "public/style/screen.css", "public/style/sum.css", "public/style/sum.less", "Rakefile", "README.markdown", "spec", "spec/spec.opts", "spec/spec_helper.rb", "spec/sum", "spec/sum/model", "spec/sum/model/incoming_mail_spec.rb", "spec/sum/model/user_spec.rb", "sum.gemspec", "vendor", "vendor/webrat", "vendor/webrat/History.txt", "vendor/webrat/install.rb", "vendor/webrat/lib", "vendor/webrat/lib/webrat", "vendor/webrat/lib/webrat/core", "vendor/webrat/lib/webrat/core/configuration.rb", "vendor/webrat/lib/webrat/core/elements", "vendor/webrat/lib/webrat/core/elements/area.rb", "vendor/webrat/lib/webrat/core/elements/element.rb", "vendor/webrat/lib/webrat/core/elements/field.rb", "vendor/webrat/lib/webrat/core/elements/form.rb", "vendor/webrat/lib/webrat/core/elements/label.rb", "vendor/webrat/lib/webrat/core/elements/link.rb", "vendor/webrat/lib/webrat/core/elements/select_option.rb", "vendor/webrat/lib/webrat/core/locators", "vendor/webrat/lib/webrat/core/locators/area_locator.rb", "vendor/webrat/lib/webrat/core/locators/button_locator.rb", "vendor/webrat/lib/webrat/core/locators/field_by_id_locator.rb", "vendor/webrat/lib/webrat/core/locators/field_labeled_locator.rb", "vendor/webrat/lib/webrat/core/locators/field_locator.rb", "vendor/webrat/lib/webrat/core/locators/field_named_locator.rb", "vendor/webrat/lib/webrat/core/locators/form_locator.rb", "vendor/webrat/lib/webrat/core/locators/label_locator.rb", "vendor/webrat/lib/webrat/core/locators/link_locator.rb", "vendor/webrat/lib/webrat/core/locators/locator.rb", "vendor/webrat/lib/webrat/core/locators/select_option_locator.rb", "vendor/webrat/lib/webrat/core/locators.rb", "vendor/webrat/lib/webrat/core/logging.rb", "vendor/webrat/lib/webrat/core/matchers", "vendor/webrat/lib/webrat/core/matchers/have_content.rb", "vendor/webrat/lib/webrat/core/matchers/have_selector.rb", "vendor/webrat/lib/webrat/core/matchers/have_tag.rb", "vendor/webrat/lib/webrat/core/matchers/have_xpath.rb", "vendor/webrat/lib/webrat/core/matchers.rb", "vendor/webrat/lib/webrat/core/methods.rb", "vendor/webrat/lib/webrat/core/mime.rb", "vendor/webrat/lib/webrat/core/save_and_open_page.rb", "vendor/webrat/lib/webrat/core/scope.rb", "vendor/webrat/lib/webrat/core/session.rb", "vendor/webrat/lib/webrat/core/xml", "vendor/webrat/lib/webrat/core/xml/hpricot.rb", "vendor/webrat/lib/webrat/core/xml/nokogiri.rb", "vendor/webrat/lib/webrat/core/xml/rexml.rb", "vendor/webrat/lib/webrat/core/xml.rb", "vendor/webrat/lib/webrat/core.rb", "vendor/webrat/lib/webrat/core_extensions", "vendor/webrat/lib/webrat/core_extensions/blank.rb", "vendor/webrat/lib/webrat/core_extensions/deprecate.rb", "vendor/webrat/lib/webrat/core_extensions/detect_mapped.rb", "vendor/webrat/lib/webrat/core_extensions/meta_class.rb", "vendor/webrat/lib/webrat/core_extensions/nil_to_param.rb", "vendor/webrat/lib/webrat/core_extensions/tcp_socket.rb", "vendor/webrat/lib/webrat/mechanize.rb", "vendor/webrat/lib/webrat/merb.rb", "vendor/webrat/lib/webrat/merb_multipart_support.rb", "vendor/webrat/lib/webrat/merb_session.rb", "vendor/webrat/lib/webrat/rack.rb", "vendor/webrat/lib/webrat/rails.rb", "vendor/webrat/lib/webrat/rspec-rails.rb", "vendor/webrat/lib/webrat/selenium", "vendor/webrat/lib/webrat/selenium/application_server_factory.rb", "vendor/webrat/lib/webrat/selenium/application_servers", "vendor/webrat/lib/webrat/selenium/application_servers/base.rb", "vendor/webrat/lib/webrat/selenium/application_servers/external.rb", "vendor/webrat/lib/webrat/selenium/application_servers/merb.rb", "vendor/webrat/lib/webrat/selenium/application_servers/rails.rb", "vendor/webrat/lib/webrat/selenium/application_servers/sinatra.rb", "vendor/webrat/lib/webrat/selenium/application_servers.rb", "vendor/webrat/lib/webrat/selenium/location_strategy_javascript", "vendor/webrat/lib/webrat/selenium/location_strategy_javascript/button.js", "vendor/webrat/lib/webrat/selenium/location_strategy_javascript/label.js", "vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webrat.js", "vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratlink.js", "vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratlinkwithin.js", "vendor/webrat/lib/webrat/selenium/location_strategy_javascript/webratselectwithoption.js", "vendor/webrat/lib/webrat/selenium/matchers", "vendor/webrat/lib/webrat/selenium/matchers/have_content.rb", "vendor/webrat/lib/webrat/selenium/matchers/have_selector.rb", "vendor/webrat/lib/webrat/selenium/matchers/have_tag.rb", "vendor/webrat/lib/webrat/selenium/matchers/have_xpath.rb", "vendor/webrat/lib/webrat/selenium/matchers.rb", "vendor/webrat/lib/webrat/selenium/selenium_extensions.js", "vendor/webrat/lib/webrat/selenium/selenium_rc_server.rb", "vendor/webrat/lib/webrat/selenium/selenium_session.rb", "vendor/webrat/lib/webrat/selenium/silence_stream.rb", "vendor/webrat/lib/webrat/selenium.rb", "vendor/webrat/lib/webrat/sinatra.rb", "vendor/webrat/lib/webrat.rb", "vendor/webrat/MIT-LICENSE.txt", "vendor/webrat/Rakefile", "vendor/webrat/README.rdoc", "vendor/webrat/spec", "vendor/webrat/spec/fakes", "vendor/webrat/spec/fakes/test_session.rb", "vendor/webrat/spec/integration", "vendor/webrat/spec/integration/merb", "vendor/webrat/spec/integration/merb/app", "vendor/webrat/spec/integration/merb/app/controllers", "vendor/webrat/spec/integration/merb/app/controllers/application.rb", "vendor/webrat/spec/integration/merb/app/controllers/exceptions.rb", "vendor/webrat/spec/integration/merb/app/controllers/testing.rb", "vendor/webrat/spec/integration/merb/app/views", "vendor/webrat/spec/integration/merb/app/views/exceptions", "vendor/webrat/spec/integration/merb/app/views/exceptions/not_acceptable.html.erb", "vendor/webrat/spec/integration/merb/app/views/exceptions/not_found.html.erb", "vendor/webrat/spec/integration/merb/app/views/layout", "vendor/webrat/spec/integration/merb/app/views/layout/application.html.erb", "vendor/webrat/spec/integration/merb/app/views/testing", "vendor/webrat/spec/integration/merb/app/views/testing/show_form.html.erb", "vendor/webrat/spec/integration/merb/app/views/testing/upload.html.erb", "vendor/webrat/spec/integration/merb/config", "vendor/webrat/spec/integration/merb/config/environments", "vendor/webrat/spec/integration/merb/config/environments/development.rb", "vendor/webrat/spec/integration/merb/config/environments/rake.rb", "vendor/webrat/spec/integration/merb/config/environments/test.rb", "vendor/webrat/spec/integration/merb/config/init.rb", "vendor/webrat/spec/integration/merb/config/rack.rb", "vendor/webrat/spec/integration/merb/config/router.rb", "vendor/webrat/spec/integration/merb/Rakefile", "vendor/webrat/spec/integration/merb/spec", "vendor/webrat/spec/integration/merb/spec/spec.opts", "vendor/webrat/spec/integration/merb/spec/spec_helper.rb", "vendor/webrat/spec/integration/merb/spec/webrat_spec.rb", "vendor/webrat/spec/integration/merb/tasks", "vendor/webrat/spec/integration/merb/tasks/merb.thor", "vendor/webrat/spec/integration/merb/tasks/merb.thor/app_script.rb", "vendor/webrat/spec/integration/merb/tasks/merb.thor/common.rb", "vendor/webrat/spec/integration/merb/tasks/merb.thor/gem_ext.rb", "vendor/webrat/spec/integration/merb/tasks/merb.thor/main.thor", "vendor/webrat/spec/integration/merb/tasks/merb.thor/ops.rb", "vendor/webrat/spec/integration/merb/tasks/merb.thor/utils.rb", "vendor/webrat/spec/integration/rack", "vendor/webrat/spec/integration/rack/app.rb", "vendor/webrat/spec/integration/rack/Rakefile", "vendor/webrat/spec/integration/rack/test", "vendor/webrat/spec/integration/rack/test/helper.rb", "vendor/webrat/spec/integration/rack/test/webrat_rack_test.rb", "vendor/webrat/spec/integration/rails", "vendor/webrat/spec/integration/rails/app", "vendor/webrat/spec/integration/rails/app/controllers", "vendor/webrat/spec/integration/rails/app/controllers/application.rb", "vendor/webrat/spec/integration/rails/app/controllers/buttons_controller.rb", "vendor/webrat/spec/integration/rails/app/controllers/fields_controller.rb", "vendor/webrat/spec/integration/rails/app/controllers/links_controller.rb", "vendor/webrat/spec/integration/rails/app/controllers/webrat_controller.rb", "vendor/webrat/spec/integration/rails/app/helpers", "vendor/webrat/spec/integration/rails/app/helpers/buttons_helper.rb", "vendor/webrat/spec/integration/rails/app/helpers/fields_helper.rb", "vendor/webrat/spec/integration/rails/app/helpers/links_helper.rb", "vendor/webrat/spec/integration/rails/app/views", "vendor/webrat/spec/integration/rails/app/views/buttons", "vendor/webrat/spec/integration/rails/app/views/buttons/show.html.erb", "vendor/webrat/spec/integration/rails/app/views/fields", "vendor/webrat/spec/integration/rails/app/views/fields/show.html.erb", "vendor/webrat/spec/integration/rails/app/views/links", "vendor/webrat/spec/integration/rails/app/views/links/show.html.erb", "vendor/webrat/spec/integration/rails/app/views/webrat", "vendor/webrat/spec/integration/rails/app/views/webrat/before_redirect_form.html.erb", "vendor/webrat/spec/integration/rails/app/views/webrat/buttons.html.erb", "vendor/webrat/spec/integration/rails/app/views/webrat/form.html.erb", "vendor/webrat/spec/integration/rails/config", "vendor/webrat/spec/integration/rails/config/boot.rb", "vendor/webrat/spec/integration/rails/config/environment.rb", "vendor/webrat/spec/integration/rails/config/environments", "vendor/webrat/spec/integration/rails/config/environments/development.rb", "vendor/webrat/spec/integration/rails/config/environments/selenium.rb", "vendor/webrat/spec/integration/rails/config/environments/test.rb", "vendor/webrat/spec/integration/rails/config/initializers", "vendor/webrat/spec/integration/rails/config/initializers/inflections.rb", "vendor/webrat/spec/integration/rails/config/initializers/mime_types.rb", "vendor/webrat/spec/integration/rails/config/initializers/new_rails_defaults.rb", "vendor/webrat/spec/integration/rails/config/locales", "vendor/webrat/spec/integration/rails/config/locales/en.yml", "vendor/webrat/spec/integration/rails/config/routes.rb", "vendor/webrat/spec/integration/rails/public", "vendor/webrat/spec/integration/rails/public/404.html", "vendor/webrat/spec/integration/rails/public/422.html", "vendor/webrat/spec/integration/rails/public/500.html", "vendor/webrat/spec/integration/rails/Rakefile", "vendor/webrat/spec/integration/rails/script", "vendor/webrat/spec/integration/rails/script/about", "vendor/webrat/spec/integration/rails/script/console", "vendor/webrat/spec/integration/rails/script/dbconsole", "vendor/webrat/spec/integration/rails/script/destroy", "vendor/webrat/spec/integration/rails/script/generate", "vendor/webrat/spec/integration/rails/script/performance", "vendor/webrat/spec/integration/rails/script/performance/benchmarker", "vendor/webrat/spec/integration/rails/script/performance/profiler", "vendor/webrat/spec/integration/rails/script/performance/request", "vendor/webrat/spec/integration/rails/script/plugin", "vendor/webrat/spec/integration/rails/script/process", "vendor/webrat/spec/integration/rails/script/process/inspector", "vendor/webrat/spec/integration/rails/script/process/reaper", "vendor/webrat/spec/integration/rails/script/process/spawner", "vendor/webrat/spec/integration/rails/script/runner", "vendor/webrat/spec/integration/rails/script/server", "vendor/webrat/spec/integration/rails/test", "vendor/webrat/spec/integration/rails/test/integration", "vendor/webrat/spec/integration/rails/test/integration/button_click_test.rb", "vendor/webrat/spec/integration/rails/test/integration/fill_in_test.rb", "vendor/webrat/spec/integration/rails/test/integration/link_click_test.rb", "vendor/webrat/spec/integration/rails/test/integration/webrat_test.rb", "vendor/webrat/spec/integration/rails/test/test_helper.rb", "vendor/webrat/spec/integration/sinatra", "vendor/webrat/spec/integration/sinatra/classic_app.rb", "vendor/webrat/spec/integration/sinatra/modular_app.rb", "vendor/webrat/spec/integration/sinatra/Rakefile", "vendor/webrat/spec/integration/sinatra/test", "vendor/webrat/spec/integration/sinatra/test/classic_app_test.rb", "vendor/webrat/spec/integration/sinatra/test/modular_app_test.rb", "vendor/webrat/spec/integration/sinatra/test/test_helper.rb", "vendor/webrat/spec/private", "vendor/webrat/spec/private/core", "vendor/webrat/spec/private/core/configuration_spec.rb", "vendor/webrat/spec/private/core/field_spec.rb", "vendor/webrat/spec/private/core/link_spec.rb", "vendor/webrat/spec/private/core/logging_spec.rb", "vendor/webrat/spec/private/core/session_spec.rb", "vendor/webrat/spec/private/mechanize", "vendor/webrat/spec/private/mechanize/mechanize_session_spec.rb", "vendor/webrat/spec/private/merb", "vendor/webrat/spec/private/merb/attaches_file_spec.rb", "vendor/webrat/spec/private/merb/merb_session_spec.rb", "vendor/webrat/spec/private/nokogiri_spec.rb", "vendor/webrat/spec/private/rails", "vendor/webrat/spec/private/rails/attaches_file_spec.rb", "vendor/webrat/spec/private/rails/rails_session_spec.rb", "vendor/webrat/spec/private/selenium", "vendor/webrat/spec/private/selenium/application_servers", "vendor/webrat/spec/private/selenium/application_servers/rails_spec.rb", "vendor/webrat/spec/public", "vendor/webrat/spec/public/basic_auth_spec.rb", "vendor/webrat/spec/public/check_spec.rb", "vendor/webrat/spec/public/choose_spec.rb", "vendor/webrat/spec/public/click_area_spec.rb", "vendor/webrat/spec/public/click_button_spec.rb", "vendor/webrat/spec/public/click_link_spec.rb", "vendor/webrat/spec/public/fill_in_spec.rb", "vendor/webrat/spec/public/locators", "vendor/webrat/spec/public/locators/field_by_xpath_spec.rb", "vendor/webrat/spec/public/locators/field_labeled_spec.rb", "vendor/webrat/spec/public/locators/field_with_id_spec.rb", "vendor/webrat/spec/public/matchers", "vendor/webrat/spec/public/matchers/contain_spec.rb", "vendor/webrat/spec/public/matchers/have_selector_spec.rb", "vendor/webrat/spec/public/matchers/have_tag_spec.rb", "vendor/webrat/spec/public/matchers/have_xpath_spec.rb", "vendor/webrat/spec/public/reload_spec.rb", "vendor/webrat/spec/public/save_and_open_spec.rb", "vendor/webrat/spec/public/select_date_spec.rb", "vendor/webrat/spec/public/select_datetime_spec.rb", "vendor/webrat/spec/public/select_spec.rb", "vendor/webrat/spec/public/select_time_spec.rb", "vendor/webrat/spec/public/selenium", "vendor/webrat/spec/public/selenium/application_server_factory_spec.rb", "vendor/webrat/spec/public/selenium/application_servers", "vendor/webrat/spec/public/selenium/application_servers/external_spec.rb", "vendor/webrat/spec/public/selenium/selenium_session_spec.rb", "vendor/webrat/spec/public/set_hidden_field_spec.rb", "vendor/webrat/spec/public/submit_form_spec.rb", "vendor/webrat/spec/public/visit_spec.rb", "vendor/webrat/spec/public/within_spec.rb", "vendor/webrat/spec/rcov.opts", "vendor/webrat/spec/spec.opts", "vendor/webrat/spec/spec_helper.rb"]
|
13
|
+
s.homepage = %q{http://github.com/winton/sum}
|
14
|
+
s.require_paths = ["lib"]
|
15
|
+
s.rubygems_version = %q{1.3.1}
|
16
|
+
s.summary = %q{A simple budgeting app built on Sinatra}
|
17
|
+
|
18
|
+
if s.respond_to? :specification_version then
|
19
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
20
|
+
s.specification_version = 2
|
21
|
+
|
22
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
23
|
+
s.add_runtime_dependency(%q<bmabey-email_spec>, ["= 0.2.0"])
|
24
|
+
s.add_runtime_dependency(%q<cucumber>, ["= 0.3.93"])
|
25
|
+
s.add_runtime_dependency(%q<haml>, ["= 2.2.2"])
|
26
|
+
s.add_runtime_dependency(%q<less>, ["= 0.8.11"])
|
27
|
+
s.add_runtime_dependency(%q<javan-whenever>, ["= 0.3.6"])
|
28
|
+
s.add_runtime_dependency(%q<rack>, ["= 1.0.0"])
|
29
|
+
s.add_runtime_dependency(%q<rack-test>, ["= 0.4.0"])
|
30
|
+
s.add_runtime_dependency(%q<rspec>, ["= 1.2.8"])
|
31
|
+
s.add_runtime_dependency(%q<shotgun>, ["= 0.3"])
|
32
|
+
s.add_runtime_dependency(%q<sinatra>, ["= 0.9.4"])
|
33
|
+
s.add_runtime_dependency(%q<winton-active_wrapper>, ["= 0.1.9"])
|
34
|
+
s.add_runtime_dependency(%q<winton-externals>, ["= 1.0.2"])
|
35
|
+
s.add_runtime_dependency(%q<winton-fetcher>, ["= 0.1.2"])
|
36
|
+
s.add_runtime_dependency(%q<winton-secret_key>, ["= 0.1.0"])
|
37
|
+
else
|
38
|
+
s.add_dependency(%q<bmabey-email_spec>, ["= 0.2.0"])
|
39
|
+
s.add_dependency(%q<cucumber>, ["= 0.3.93"])
|
40
|
+
s.add_dependency(%q<haml>, ["= 2.2.2"])
|
41
|
+
s.add_dependency(%q<less>, ["= 0.8.11"])
|
42
|
+
s.add_dependency(%q<javan-whenever>, ["= 0.3.6"])
|
43
|
+
s.add_dependency(%q<rack>, ["= 1.0.0"])
|
44
|
+
s.add_dependency(%q<rack-test>, ["= 0.4.0"])
|
45
|
+
s.add_dependency(%q<rspec>, ["= 1.2.8"])
|
46
|
+
s.add_dependency(%q<shotgun>, ["= 0.3"])
|
47
|
+
s.add_dependency(%q<sinatra>, ["= 0.9.4"])
|
48
|
+
s.add_dependency(%q<winton-active_wrapper>, ["= 0.1.9"])
|
49
|
+
s.add_dependency(%q<winton-externals>, ["= 1.0.2"])
|
50
|
+
s.add_dependency(%q<winton-fetcher>, ["= 0.1.2"])
|
51
|
+
s.add_dependency(%q<winton-secret_key>, ["= 0.1.0"])
|
52
|
+
end
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<bmabey-email_spec>, ["= 0.2.0"])
|
55
|
+
s.add_dependency(%q<cucumber>, ["= 0.3.93"])
|
56
|
+
s.add_dependency(%q<haml>, ["= 2.2.2"])
|
57
|
+
s.add_dependency(%q<less>, ["= 0.8.11"])
|
58
|
+
s.add_dependency(%q<javan-whenever>, ["= 0.3.6"])
|
59
|
+
s.add_dependency(%q<rack>, ["= 1.0.0"])
|
60
|
+
s.add_dependency(%q<rack-test>, ["= 0.4.0"])
|
61
|
+
s.add_dependency(%q<rspec>, ["= 1.2.8"])
|
62
|
+
s.add_dependency(%q<shotgun>, ["= 0.3"])
|
63
|
+
s.add_dependency(%q<sinatra>, ["= 0.9.4"])
|
64
|
+
s.add_dependency(%q<winton-active_wrapper>, ["= 0.1.9"])
|
65
|
+
s.add_dependency(%q<winton-externals>, ["= 1.0.2"])
|
66
|
+
s.add_dependency(%q<winton-fetcher>, ["= 0.1.2"])
|
67
|
+
s.add_dependency(%q<winton-secret_key>, ["= 0.1.0"])
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,358 @@
|
|
1
|
+
== 0.4.5 / ?
|
2
|
+
|
3
|
+
* Major enhancements
|
4
|
+
|
5
|
+
* Ruby 1.9 compatibility (Michael Fellinger, Jakub Kuźma)
|
6
|
+
* Improve performance (~2x) on JRuby by supporting Nokogiri
|
7
|
+
* Added support for external app servers in selenium mode (basically don't start one) (Mike Gaffney)
|
8
|
+
* Added support for uploading files for Merb (Ryan Carver)
|
9
|
+
|
10
|
+
* Minor enhancements
|
11
|
+
|
12
|
+
* Make redirect detection work in the face of rational maths (like when ruby-units is active) (Piers Cawley)
|
13
|
+
* Use Launchy to handle opening pages in the browser with cross-platform compatibility (Bryan Helmkamp)
|
14
|
+
* Added support for field_labeled_locators ending in non word characters
|
15
|
+
lh 148 (Zach Dennis)
|
16
|
+
* Filled in tests on click link lh 195 (diabolo)
|
17
|
+
* Added current_url to selenium session lh 215 (Luke Amdor)
|
18
|
+
* Added silence spec to selenium lh 238 (Martin Gamsjaeger aka snusnu)
|
19
|
+
* Added ability to configure the browser startup timeout for selenium lh 242 (Mike Gaffney, Mark Dodwell)
|
20
|
+
* Added delegation for field_named lh194 (pivotal labs)
|
21
|
+
* Added fix to keep from escaping field values in mechanize mode lh256 (jish)
|
22
|
+
* Adding fixes for click button/link and made the integration specs pass for the same in selenium lh254 (Ldiehl, Matthias Marschall)
|
23
|
+
* Adding clicking link by id in selenium mode lh221 (larrytheliquid)
|
24
|
+
* Adding fix for have_selector and have_xpath in descendent blocks lh234 (Thomas Jack)
|
25
|
+
* Adding fix for fields with labels with special characters (Thomas Jack, Mike Gaffney, Bryan Hemlkamp)
|
26
|
+
* Deprecated current_page lh50 (Mike Gaffney)
|
27
|
+
* Fixed issue with redirects and multiple hosts lh168 (Mutwin Kraus)
|
28
|
+
|
29
|
+
* Bug fixes
|
30
|
+
|
31
|
+
* Wait for application servers socket on 0.0.0.0 instead of the application_address
|
32
|
+
* Translate CSS and image paths with single quotes in save_and_open_page (Erin Staniland)
|
33
|
+
|
34
|
+
== 0.4.4 / 2009-04-06
|
35
|
+
|
36
|
+
* Major enhancements
|
37
|
+
|
38
|
+
* Make selenium process management code more robust and informative
|
39
|
+
|
40
|
+
* Minor enhancements
|
41
|
+
|
42
|
+
* Add support for Rails javascript post links (Mark Menard)
|
43
|
+
* Upgrade selenium-client dependency to 1.2.14, and update for new waiting
|
44
|
+
API (Balint Erdi)
|
45
|
+
* Change default app environment from "selenium" to "test"
|
46
|
+
|
47
|
+
* Bug fixes
|
48
|
+
|
49
|
+
* Don't create a new instance of WWW::Mechanize for each request
|
50
|
+
(Mark Menard)
|
51
|
+
* Select fields with duplicate selected options sent an incorrect value (Noah Davis)
|
52
|
+
|
53
|
+
== 0.4.3 / 2009-03-17
|
54
|
+
|
55
|
+
* Minor enhancements
|
56
|
+
|
57
|
+
* Support Rails 2.3. Use Rack::Utils to parse params (Matthew Ford)
|
58
|
+
* Support for "modular" Sinatra app style (Simon Rozet)
|
59
|
+
* Initial Merb and Sinatra compatibility for Selenium mode (Corey Donohoe)
|
60
|
+
* When faced with a label with no for attribute, that contains a hidden field
|
61
|
+
and another field, as can be the case in Rails 2.3's checkbox view,
|
62
|
+
webrat now locates the non-hidden field. (Luke Melia)
|
63
|
+
* Add application_framework config for Selenium mode to determine how to
|
64
|
+
start and stop the app server (Corey Donohoe)
|
65
|
+
|
66
|
+
* Bug fixes
|
67
|
+
|
68
|
+
* Fix following of absolute redirect URL in Sinatra (Simon Rozet)
|
69
|
+
|
70
|
+
== 0.4.2 / 2009-02-24
|
71
|
+
|
72
|
+
* Major enhancements
|
73
|
+
|
74
|
+
* Significant improvements to have_selector. It now supports specifying
|
75
|
+
attributes in a hash and :count and :content options. See
|
76
|
+
have_selector_spec.rb for more.
|
77
|
+
* Add the same functionality mentioned above to have_xpath
|
78
|
+
|
79
|
+
* Minor enhancements
|
80
|
+
|
81
|
+
* Squeeze extra whitespace out of failures messages from contain
|
82
|
+
matcher
|
83
|
+
* Detect infinite redirects and raise a Webrat::InfiniteRedirectError
|
84
|
+
(Daniel Lucraft)
|
85
|
+
|
86
|
+
* Bug fixes
|
87
|
+
|
88
|
+
* Properly quote single and double quotes strings in XPath
|
89
|
+
* Fix warning caused by Nokogiri deprecating CSS::Parser.parse
|
90
|
+
(Aaron Patterson)
|
91
|
+
* Accept do/end blocks in matchers. [#157] (Peter Jaros)
|
92
|
+
* Quote --chdir option to mongrel_rails to support RAILS_ROOTs with spaces
|
93
|
+
(T.J. VanSlyke)
|
94
|
+
|
95
|
+
== 0.4.1 / 2009-01-31
|
96
|
+
|
97
|
+
* Minor enhancements
|
98
|
+
|
99
|
+
* Support Sinatra 0.9 (Harry Vangberg)
|
100
|
+
* Update query param parsing to work with latest Edge Rails
|
101
|
+
* Added #redirected_to method to easily check where an external redirect was
|
102
|
+
redirected to (Adam Greene)
|
103
|
+
* Recognize input tags with type button (Lena Herrmann)
|
104
|
+
* Add uncheck method to Selenium mode (Lee Bankewitz)
|
105
|
+
|
106
|
+
* Bug fixes
|
107
|
+
|
108
|
+
* Make requests to a Rails app using a full URL instead of a relative path. This change
|
109
|
+
is helpful for Rails apps that use subdomains. (John Hwang and Zach Dennis)
|
110
|
+
* Follow redirects that are on the same domain but a different subdomain
|
111
|
+
(Adam Greene)
|
112
|
+
* rescue from Webrat::TimeoutError in selenium matchers which allows NegativeMatchers
|
113
|
+
to behave correctly (Noah Davis)
|
114
|
+
* Switch to using selenium.click instead of .check when checking a checkbox
|
115
|
+
(Noah Davis)
|
116
|
+
* Create tmp/pids directory if directory does not exist. (Amos King and Mike Gaffney)
|
117
|
+
* Setup deprecated writers for the selenium_environment= and selenium_port= config
|
118
|
+
* Ensure the previous pages params aren't passed through redirect (Daniel Lucraft and
|
119
|
+
Bryan Helmkamp)
|
120
|
+
* Labels should only search for fields within the current scope (Kyle Hargraves)
|
121
|
+
|
122
|
+
== 0.4.0 / 2009-01-18
|
123
|
+
|
124
|
+
* _IMPORTANT_ Breaking change:
|
125
|
+
|
126
|
+
* Removed init.rb auto-require of webrat/rails
|
127
|
+
* Removed auto-require of webrat/rails when requiring webrat when RAILS_ENV is
|
128
|
+
defined
|
129
|
+
|
130
|
+
In your env.rb or test_helper.rb file, ensure you have something like:
|
131
|
+
|
132
|
+
require "webrat"
|
133
|
+
|
134
|
+
Webrat.configure do |config|
|
135
|
+
config.mode = :rails
|
136
|
+
end
|
137
|
+
|
138
|
+
* Major enhancements
|
139
|
+
|
140
|
+
* Major improvements to Webrat::Selenium (Many contributors listed here)
|
141
|
+
* Add assert_* methods for using Webrat's matchers w/o RSpec (Mike Gaffney, Amos King)
|
142
|
+
* Added Webrat.configure method for Webrat configuration [#33] (Mike Gaffney)
|
143
|
+
* Added select_time, select_date, and select_datetime to API. [#36] (Ben Mabey)
|
144
|
+
* Use Hpricot and REXML when not parsing with Nokogiri (on JRuby, for example)
|
145
|
+
|
146
|
+
* Minor enhancements
|
147
|
+
|
148
|
+
* Added Selenium grid configuration and support. (Amos King && Cornel Borcean)
|
149
|
+
* Support passing an ActiveRecord model to #within when in Rails mode [#68] (Luke Melia)
|
150
|
+
* Make assert_* matchers in rails mode increment the assertions count [#123] (Amos King)
|
151
|
+
* Added assert_* matchers to selenium matchers [#110] (Amos King)
|
152
|
+
* Added assert_contain, assert_not_contain [#86] (Mike Gaffney, Amos King)
|
153
|
+
* Add configuration options for the Selenium environment and port (Kieran Pilkington)
|
154
|
+
* Maximize the browser window after initializing Selenium (Luke Melia)
|
155
|
+
* Better inspect output for Webrat elements
|
156
|
+
* Sets the Webrat mode with Configuration#mode= in the config block [#85] (Mike Gaffney)
|
157
|
+
* Detect if the document is XML or HTML using the Content-Type when in Rails mode
|
158
|
+
* Expose #selenium method for direct access to Selenium client
|
159
|
+
* Check nokogiri gem version before requiring nokogiri
|
160
|
+
* Include the Selenium server jar file in the gem (Bryan Helmkamp, Ben Schwarz)
|
161
|
+
* Added key_down, key_up and fire_event to Selenium session (Fernando Garcia)
|
162
|
+
* Fix outputing README during Rails plugin install (Fernando Garcia)
|
163
|
+
* Strip newlines when matching label text (Miha Filej)
|
164
|
+
* Add simple support for accessing Webrat's matchers from RSpec by requiring
|
165
|
+
"webrat/rspec-rails" (David Chelimsky)
|
166
|
+
* Support save_and_open_page in Windows and Cygwin (Mike Gaffney)
|
167
|
+
* Added RadioField#checked? to indicated whether or not a radio button is checked
|
168
|
+
(Luke Melia)
|
169
|
+
* Add spec:jruby rake task for running Webrat's spec suite with JRuby
|
170
|
+
* Added field_by_xpath to locate a Webrat::Field using arbitrary XPath expressions
|
171
|
+
* Helpful error message for missing option values [#40] (Ben Mabey)
|
172
|
+
* Add set_hidden_field method (Noah Davis, Bryan Helmkamp)
|
173
|
+
* Add submit_form method for submitting a form by ID (Noah Davis, Bryan Helmkamp)
|
174
|
+
* Switch to using Nokogiri.parse for simple XML/XHTML autodetection [#66]
|
175
|
+
* Removed Webrat.root method, which seemed to be unused
|
176
|
+
* Added automatic starting and stopping of the Selenium server and a Mongrel Rails
|
177
|
+
app server when using webrat/selenium
|
178
|
+
* Switch to using selenium-client gem and vendor selenium-server.jar (Luke Melia)
|
179
|
+
* Added gemspec so the gem builds on GitHub now
|
180
|
+
* Deprecate old style methods (fills_in is deprecated in favor of fill_in, etc.)
|
181
|
+
* Improvements to the README and RDoc (Bryan Helmkamp, Mike Gaffney)
|
182
|
+
* Allow clicking links by id and id regexp (Mike Gaffney)
|
183
|
+
* Raise Webrat::DisabledFieldError when attempting to manipulate a disabled field
|
184
|
+
* Raise Webrat::NotFoundErrors when an element is not found
|
185
|
+
* Raise Webrat::PageLoadError when a failure occurs so that application exceptions
|
186
|
+
can be more accurately tested (Ryan Briones)
|
187
|
+
* Helpful error message for missing option in select box. [#40] (Ben Mabey)
|
188
|
+
* Extracted save_and_open page to make it usable in Selenium mode (Luke Melia)
|
189
|
+
* Added save_and_open_screengrab for Selenium mode (Luke Melia)
|
190
|
+
|
191
|
+
* Bug fixes
|
192
|
+
|
193
|
+
* field_labeled should disregard labels without matching fields (Kyle Hargraves)
|
194
|
+
* Fixed bug where Scope was creating a new DOM rather than re-using the existing DOM.
|
195
|
+
[#105] (Zach Dennis)
|
196
|
+
* Support Rails > v2.2 by using ActionController::RequestParser for param parsing [#107]
|
197
|
+
(Marcello Nuccio)
|
198
|
+
* Raise a Webrat::NotFoundError if the scope passed to #within doesn't exist [#90]
|
199
|
+
* Match against link _text_ which decodes character references.
|
200
|
+
Useful for multibyte languages like Japanese (moronatural@gmail.com)
|
201
|
+
* Fix params hash generation for Mechanize when Merb is not defined [#62]
|
202
|
+
* Expose some Webrat methods that were missing from the Webrat::Methods module
|
203
|
+
(Low Chin Chau)
|
204
|
+
* Allow mechanize session to pass through basic auth (Ryan Briones)
|
205
|
+
* Improvements to the Mechanize support (Jeremy Burks)
|
206
|
+
* Fix following fully qualified local links (Lawrence Pit)
|
207
|
+
* Fixed bug where Webrat would lose complex parameters (like foo[bar[baz]][])
|
208
|
+
in Merb due to not correctly merging Mashes. (Drew Colthorp)
|
209
|
+
* Extend Rails' ActionController::IntegrationTest instead of
|
210
|
+
ActionController::Integration::Session (Fixes using Webrat's #select method and
|
211
|
+
avoids usage of method_missing)
|
212
|
+
* Ensure that Webrat::MechanizeSession.request_page always uses an absolute
|
213
|
+
URL. (Graham Ashton)
|
214
|
+
* Strip anchor tags from URIs before passing to Rails integration session
|
215
|
+
(Noah Davis)
|
216
|
+
* Treat text and regexp when matching Selenium buttons (Ross Kaffenberger)
|
217
|
+
* Allow SeleniumSession's click_button to be called without an argument without
|
218
|
+
blowing up (Luke Melia)
|
219
|
+
|
220
|
+
== 0.3.4 / 2008-12-29
|
221
|
+
|
222
|
+
* 1 Minor enhancement
|
223
|
+
|
224
|
+
* Fix compatibility with Nokogiri 1.1.0 on JRuby
|
225
|
+
|
226
|
+
* 1 Bug fix
|
227
|
+
|
228
|
+
* Correct version for Nokogiri dependency in gem
|
229
|
+
|
230
|
+
== 0.3.3 / 2008-12-28
|
231
|
+
|
232
|
+
* 1 Minor enhancement
|
233
|
+
|
234
|
+
* Fix compatibility with Nokogiri 1.1.0 on MRI
|
235
|
+
|
236
|
+
== 0.3.2 / 2008-11-08
|
237
|
+
|
238
|
+
* 1 Minor enhancement
|
239
|
+
|
240
|
+
* Fixes behavior or have_tag when a block is passed. It passes the matched node(s)
|
241
|
+
to the block for further specs again. (Carl Lerche)
|
242
|
+
|
243
|
+
== 0.3.1 / 2008-11-07
|
244
|
+
|
245
|
+
* 1 Minor enhancement
|
246
|
+
|
247
|
+
* Use @_webrat_session instance variable instead of @session for Merb integration
|
248
|
+
to avoid collisions
|
249
|
+
|
250
|
+
== 0.3.0 / 2008-11-07
|
251
|
+
|
252
|
+
* 4 Major enhancements
|
253
|
+
|
254
|
+
* Added Merb support (Gwyn Morfey, Jeremy Burks, Rob Kaufman, Yehuda Katz)
|
255
|
+
* Added experimental Selenium support (Luke Melia)
|
256
|
+
* Add have_selector, have_xpath, have_tag and contain matchers from Merb
|
257
|
+
* Switch from Hpricot to Nokogiri for XML parsing (thanks, Aaron Patterson)
|
258
|
+
|
259
|
+
* 37 Minor enhancements
|
260
|
+
|
261
|
+
* Added #within for manipulating the current page within a selector scope
|
262
|
+
* Add support for file fields via #attaches_file method (Rails only at the moment)
|
263
|
+
(Kyle Hargraves)
|
264
|
+
* Add support for simulating SSL requests (Luke Melia)
|
265
|
+
* Added #basic_auth(user, pass) to support HTTP Basic Auth (Aslak Hellesøy)
|
266
|
+
* Added support for Sinatra and Rack (Aslak Hellesøy)
|
267
|
+
* Rename visits to visit, fills_in to fill_in, etc.
|
268
|
+
* Add #field_labeled for looking up form fields by label (David Chelimsky)
|
269
|
+
* Add #field_named and #field_with_id locators
|
270
|
+
* Don't depend on hoe anymore
|
271
|
+
* Return responses after sending requests
|
272
|
+
* Allow clicking links and buttons by a regular expression in Selenium (Luke Melia)
|
273
|
+
* Allow clicking links by a regular expression
|
274
|
+
* Add #http_accept for including MIME type HTTP "Accept" headers (Ryan Briones)
|
275
|
+
* Add #header to support inclusion of custom HTTP headers (Ryan Briones)
|
276
|
+
* Consider response codes 200-499 as successful enough to not raise a Webrat error
|
277
|
+
(David Leal)
|
278
|
+
* Add support for clicking areas of an image map (Alex Lang)
|
279
|
+
* Support relative links, including href="?foo=bar" (Kyle Hargraves)
|
280
|
+
* Separated Rails-specific code from the Webrat core to make it easier to use
|
281
|
+
Webrat with other environments
|
282
|
+
* Alias visits as visit, clicks_link as click_link, etc. for better readability
|
283
|
+
* Raise error when trying to interact with a disabled form element (Luke Melia)
|
284
|
+
* Don't send disabled form elements to the server (Nicholas A. Evans)
|
285
|
+
* Display response body when the page load is not successful (David Leal)
|
286
|
+
* CGI escape form field values (Miha Filej)
|
287
|
+
* Add support for redirect_to :back by sending HTTP_REFERER headers
|
288
|
+
(Hendrik Volkmer)
|
289
|
+
* Expose current DOM (as an Hpricot object) as #current_dom
|
290
|
+
* Add support for disabling JavaScript when clicking a link to enable testing of
|
291
|
+
both JS and non-JS implementations (Luke Melia and Bryan Helmkamp)
|
292
|
+
* Support  's as spaces in matching link text (Luke Melia)
|
293
|
+
* Support button elements (Nick Sieger)
|
294
|
+
* Support matching select options by regexp (Kyle Hargraves)
|
295
|
+
* save_and_open_page rewrites css and image references to provide a friendlier
|
296
|
+
debugging experience (Luke Melia)
|
297
|
+
* Added support for matching alt attributes in fields (primarly for clicks_button)
|
298
|
+
(Aaron Quint)
|
299
|
+
* Support '&' in submitted values (Kyle Hargraves)
|
300
|
+
* Support clicking links by title (Dan Barry)
|
301
|
+
* Added missing spec for clicking image buttons (Tim Harper)
|
302
|
+
* Switched tests to specs, and from Mocha to RSpec's mocking library
|
303
|
+
* Add support to click_button for IDs (Gwyn Morfey)
|
304
|
+
* Miscellaneous core refactorings (Jan Suchal)
|
305
|
+
|
306
|
+
* 8 Bug fixes
|
307
|
+
|
308
|
+
* Fix initialization of WWW::Mechanize (Derek Kastner)
|
309
|
+
* Don't open blank pages in the browser (Kyle Hargraves)
|
310
|
+
* Support radio buttons with multiple labels (Dan Barry)
|
311
|
+
* Fix load order bug on some platforms (Ismael Celis)
|
312
|
+
* Fix bug with empty select list option (Kyle Hargraves)
|
313
|
+
* Fix regression of not sending default values in password fields
|
314
|
+
* Don't explode if encountering inputs with no type attribute (assume text)
|
315
|
+
* Fix bug where choosing a radio button in a series with a default submitted the
|
316
|
+
incorrect field value (Luke Melia)
|
317
|
+
|
318
|
+
== 0.2.0 / 2008-04-04
|
319
|
+
|
320
|
+
* 4 Major enhancements
|
321
|
+
|
322
|
+
* Add save_and_open_page to aid in debugging
|
323
|
+
* Add radio button support via #chooses method
|
324
|
+
* Add basic support for Rails-generated JavaScript link tags
|
325
|
+
* Add support for checkboxes (Patches from Kyle Hargraves and Jarkko Laine)
|
326
|
+
* Add support for textarea fields (Sacha Schlegel)
|
327
|
+
|
328
|
+
* 8 Minor enhancements
|
329
|
+
|
330
|
+
* Added reloads method to reload the page (Kamal Fariz Mahyuddi)
|
331
|
+
* Prevent making a request if clicking on local anchor link (Kamal Fariz Mahyuddi)
|
332
|
+
* Added clicks_link_within(selector, link_text), allowing restricting link search
|
333
|
+
to within a given css selector (Luke Melia)
|
334
|
+
* Allow specifying the input name/label when doing a select (David Chelimsky)
|
335
|
+
* Raise a specific exception if the developer tries to manipulate form elements
|
336
|
+
before loading a page (James Deville)
|
337
|
+
* Add support for alternate POST, PUT and DELETE link clicking (Kyle Hargraves)
|
338
|
+
* Change clicks_link to find the shortest matching link (Luke Melia)
|
339
|
+
* Improve matching for labels in potentially ambiguous cases
|
340
|
+
|
341
|
+
* 7 Bug fixes
|
342
|
+
|
343
|
+
* Fix incorrect serializing of collection inputs, i.e. name contains []
|
344
|
+
(Kamal Fariz Mahyuddi)
|
345
|
+
* Serialize empty text field values just like browsers (Kamal Fariz Mahyuddi)
|
346
|
+
* Quick fix to avoid @dom not initialized warnings (Kamal Fariz Mahyuddi)
|
347
|
+
* Docfix: bad reference to #select method in README (Luke Melia)
|
348
|
+
* Ensure Rails-style checkboxes work properly (checkboxes followed by a hidden
|
349
|
+
input with the same name)
|
350
|
+
* Fix Edge Rails (a.k.a. 2.0 RC) compatibility (David Chelimsky)
|
351
|
+
* Support param hashes nested more than one level (David Chelimsky)
|
352
|
+
|
353
|
+
== 0.1.0 / 2007-11-28
|
354
|
+
|
355
|
+
* 1 major enhancement
|
356
|
+
|
357
|
+
* Birthday!
|
358
|
+
|