picolena 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +11 -4
- data/Manifest.txt +1 -0
- data/README.txt +2 -2
- data/bin/picolena +1 -1
- data/config/hoe.rb +10 -10
- data/lib/picolena/USAGE +1 -1
- data/lib/picolena/config/basic.rb +11 -11
- data/lib/picolena/picolena_generator.rb +15 -14
- data/lib/picolena/templates/app/controllers/application.rb +5 -5
- data/lib/picolena/templates/app/controllers/documents_controller.rb +17 -9
- data/lib/picolena/templates/app/helpers/documents_helper.rb +15 -14
- data/lib/picolena/templates/app/models/document.rb +28 -37
- data/lib/picolena/templates/app/models/finder.rb +12 -37
- data/lib/picolena/templates/app/models/indexer.rb +58 -37
- data/lib/picolena/templates/app/models/plain_text_extractor.rb +16 -16
- data/lib/picolena/templates/app/models/query.rb +5 -5
- data/lib/picolena/templates/app/views/documents/show.html.haml +3 -3
- data/lib/picolena/templates/app/views/layouts/application.html.haml +2 -2
- data/lib/picolena/templates/config/environment.rb +1 -1
- data/lib/picolena/templates/config/initializers/002_load_indexed_dirs.rb +8 -8
- data/lib/picolena/templates/config/initializers/003_load_white_list_IPs.rb +8 -8
- data/lib/picolena/templates/config/initializers/005_load_custom_title_and_names_and_links.rb +5 -5
- data/lib/picolena/templates/config/initializers/006_load_icons.rb +9 -7
- data/lib/picolena/templates/lang/ui/es.yml +1 -1
- data/lib/picolena/templates/lib/core_exts.rb +7 -7
- data/lib/picolena/templates/lib/plain_text_extractor_DSL.rb +10 -10
- data/lib/picolena/templates/lib/plain_text_extractors/ms.excel.rb +1 -1
- data/lib/picolena/templates/lib/plain_text_extractors/plain_text.rb +2 -2
- data/lib/picolena/templates/lib/tasks/index.rake +8 -3
- data/lib/picolena/templates/lib/tasks/install_dependencies.rake +2 -2
- data/lib/picolena/templates/lib/tasks/log.rake +1 -1
- data/lib/picolena/templates/public/.htaccess +3 -3
- data/lib/picolena/templates/public/images/flags/sv.png +0 -0
- data/lib/picolena/templates/public/stylesheets/style.css +2 -2
- data/lib/picolena/templates/script/spec_server +1 -1
- data/lib/picolena/templates/spec/controllers/application_controller_spec.rb +2 -2
- data/lib/picolena/templates/spec/controllers/documents_controller_spec.rb +17 -17
- data/lib/picolena/templates/spec/helpers/application_helper_spec.rb +2 -2
- data/lib/picolena/templates/spec/helpers/documents_helper_spec.rb +3 -3
- data/lib/picolena/templates/spec/models/basic_finder_spec.rb +14 -14
- data/lib/picolena/templates/spec/models/document_spec.rb +7 -15
- data/lib/picolena/templates/spec/models/finder_spec.rb +45 -38
- data/lib/picolena/templates/spec/models/host_indexing_system_spec.rb +5 -5
- data/lib/picolena/templates/spec/models/index_directories_spec.rb +2 -2
- data/lib/picolena/templates/spec/models/plain_text_extractor_spec.rb +6 -6
- data/lib/picolena/templates/spec/models/query_spec.rb +7 -7
- data/lib/picolena/templates/spec/rcov.opts +1 -1
- data/lib/picolena/templates/spec/test_dirs/indexed/basic/myfirstjavaprog.java +1 -1
- data/lib/picolena/templates/spec/test_dirs/indexed/basic/queens.for +1 -1
- data/lib/picolena/templates/spec/test_dirs/indexed/lang/hugo +74 -74
- data/lib/picolena/templates/spec/test_dirs/indexed/lang/lorca +56 -56
- data/lib/picolena/templates/spec/test_dirs/indexed/others/7.html +4 -4
- data/lib/picolena/templates/spec/test_dirs/indexed/others/ccmatrix1.cpp +6 -6
- data/lib/picolena/templates/spec/test_dirs/indexed/others/lemonde.htm +326 -326
- data/lib/picolena/templates/spec/test_dirs/indexed/others/nested/ReadMe.rtf +62 -62
- data/lib/picolena/templates/spec/test_dirs/indexed/others/xor.vee +0 -1
- data/lib/picolena/templates/spec/test_dirs/indexed/others/zafh.net.html +1 -1
- data/lib/picolena/version.rb +1 -1
- data/lib/rubigen_ext.rb +1 -1
- data/rails_plugins/globalite/CHANGELOG +1 -1
- data/rails_plugins/globalite/README +19 -19
- data/rails_plugins/globalite/lang/rails/de-DE.yml +6 -6
- data/rails_plugins/globalite/lang/rails/en-UK.yml +10 -10
- data/rails_plugins/globalite/lang/rails/en-US.yml +10 -10
- data/rails_plugins/globalite/lang/rails/es-ES.yml +11 -11
- data/rails_plugins/globalite/lang/rails/fr-FR.yml +10 -10
- data/rails_plugins/globalite/lang/rails/it.yml +10 -10
- data/rails_plugins/globalite/lang/rails/pt-BR.yml +6 -6
- data/rails_plugins/globalite/lang/rails/pt-PT.yml +6 -6
- data/rails_plugins/globalite/lib/globalite/l10n.rb +25 -25
- data/rails_plugins/globalite/lib/globalite/locale.rb +9 -9
- data/rails_plugins/globalite/lib/rails/core_ext.rb +4 -4
- data/rails_plugins/globalite/lib/rails/localization.rb +3 -3
- data/rails_plugins/globalite/lib/rails/localized_action_view.rb +17 -17
- data/rails_plugins/globalite/lib/rails/localized_active_record.rb +4 -4
- data/rails_plugins/globalite/rdoc/classes/ActionView/Helpers/DateHelper.html +19 -19
- data/rails_plugins/globalite/rdoc/classes/ActionView/Helpers/FormOptionsHelper.html +9 -9
- data/rails_plugins/globalite/rdoc/classes/ActionView/Helpers/NumberHelper.html +8 -8
- data/rails_plugins/globalite/rdoc/classes/ActionView/Helpers.html +5 -5
- data/rails_plugins/globalite/rdoc/classes/ActionView.html +5 -5
- data/rails_plugins/globalite/rdoc/classes/ActiveRecord/Errors.html +6 -6
- data/rails_plugins/globalite/rdoc/classes/ActiveRecord.html +5 -5
- data/rails_plugins/globalite/rdoc/classes/Array.html +6 -6
- data/rails_plugins/globalite/rdoc/classes/Date.html +8 -8
- data/rails_plugins/globalite/rdoc/classes/Globalite/L10n.html +49 -49
- data/rails_plugins/globalite/rdoc/classes/Globalite.html +6 -6
- data/rails_plugins/globalite/rdoc/classes/Kernel.html +6 -6
- data/rails_plugins/globalite/rdoc/classes/Locale.html +11 -11
- data/rails_plugins/globalite/rdoc/classes/Time.html +8 -8
- data/rails_plugins/globalite/rdoc/files/README.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/globalite/l10n_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/globalite/locale_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/globalite_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/rails/core_ext_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/rails/localization_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/rails/localized_action_view_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/rails/localized_active_record_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/fr_class_index.html +1 -1
- data/rails_plugins/globalite/rdoc/fr_file_index.html +1 -1
- data/rails_plugins/globalite/rdoc/fr_method_index.html +1 -1
- data/rails_plugins/globalite/rdoc/index.html +1 -1
- data/rails_plugins/globalite/spec/core_localization_spec.rb +18 -18
- data/rails_plugins/globalite/spec/l10n_spec.rb +25 -25
- data/rails_plugins/globalite/tasks/globalite_tasks.rake +6 -6
- data/rails_plugins/rspec/CHANGES +16 -16
- data/rails_plugins/rspec/README +2 -2
- data/rails_plugins/rspec/Rakefile +1 -1
- data/rails_plugins/rspec/UPGRADE +1 -1
- data/rails_plugins/rspec/autotest/discover.rb +1 -1
- data/rails_plugins/rspec/examples/pure/autogenerated_docstrings_example.rb +5 -5
- data/rails_plugins/rspec/examples/pure/before_and_after_example.rb +2 -2
- data/rails_plugins/rspec/examples/pure/behave_as_example.rb +5 -5
- data/rails_plugins/rspec/examples/pure/custom_expectation_matchers.rb +7 -7
- data/rails_plugins/rspec/examples/pure/file_accessor.rb +1 -1
- data/rails_plugins/rspec/examples/pure/file_accessor_spec.rb +2 -2
- data/rails_plugins/rspec/examples/pure/helper_method_example.rb +1 -1
- data/rails_plugins/rspec/examples/pure/legacy_spec.rb +2 -2
- data/rails_plugins/rspec/examples/pure/predicate_example.rb +2 -2
- data/rails_plugins/rspec/examples/pure/shared_example_group_example.rb +11 -11
- data/rails_plugins/rspec/examples/pure/shared_stack_examples.rb +4 -4
- data/rails_plugins/rspec/examples/pure/stack.rb +6 -6
- data/rails_plugins/rspec/examples/pure/stack_spec.rb +7 -7
- data/rails_plugins/rspec/examples/pure/stack_spec_with_nested_example_groups.rb +10 -10
- data/rails_plugins/rspec/examples/pure/stubbing_example.rb +4 -4
- data/rails_plugins/rspec/examples/stories/adder.rb +2 -2
- data/rails_plugins/rspec/examples/stories/addition +8 -8
- data/rails_plugins/rspec/examples/stories/calculator.rb +5 -5
- data/rails_plugins/rspec/examples/stories/game-of-life/behaviour/examples/game_behaviour.rb +7 -7
- data/rails_plugins/rspec/examples/stories/game-of-life/behaviour/examples/grid_behaviour.rb +13 -13
- data/rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb +5 -5
- data/rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/kill_a_cell.rb +2 -2
- data/rails_plugins/rspec/examples/stories/game-of-life/life/game.rb +3 -3
- data/rails_plugins/rspec/examples/stories/game-of-life/life/grid.rb +10 -10
- data/rails_plugins/rspec/failing_examples/failing_autogenerated_docstrings_example.rb +5 -5
- data/rails_plugins/rspec/failing_examples/failure_in_setup.rb +3 -3
- data/rails_plugins/rspec/failing_examples/failure_in_teardown.rb +3 -3
- data/rails_plugins/rspec/failing_examples/mocking_example.rb +1 -1
- data/rails_plugins/rspec/failing_examples/raising_example.rb +11 -11
- data/rails_plugins/rspec/failing_examples/team_spec.rb +5 -5
- data/rails_plugins/rspec/lib/autotest/rspec.rb +5 -5
- data/rails_plugins/rspec/lib/spec/example/configuration.rb +4 -4
- data/rails_plugins/rspec/lib/spec/example/example_group_factory.rb +3 -3
- data/rails_plugins/rspec/lib/spec/example/example_group_methods.rb +1 -1
- data/rails_plugins/rspec/lib/spec/example/example_matcher.rb +2 -2
- data/rails_plugins/rspec/lib/spec/example/example_methods.rb +4 -4
- data/rails_plugins/rspec/lib/spec/example/pending.rb +1 -1
- data/rails_plugins/rspec/lib/spec/expectations/differs/default.rb +5 -5
- data/rails_plugins/rspec/lib/spec/expectations/errors.rb +1 -1
- data/rails_plugins/rspec/lib/spec/expectations/handler.rb +5 -5
- data/rails_plugins/rspec/lib/spec/expectations.rb +1 -1
- data/rails_plugins/rspec/lib/spec/extensions/main.rb +8 -8
- data/rails_plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb +2 -2
- data/rails_plugins/rspec/lib/spec/matchers/be.rb +18 -18
- data/rails_plugins/rspec/lib/spec/matchers/be_close.rb +4 -4
- data/rails_plugins/rspec/lib/spec/matchers/change.rb +20 -20
- data/rails_plugins/rspec/lib/spec/matchers/eql.rb +4 -4
- data/rails_plugins/rspec/lib/spec/matchers/equal.rb +4 -4
- data/rails_plugins/rspec/lib/spec/matchers/has.rb +8 -8
- data/rails_plugins/rspec/lib/spec/matchers/have.rb +9 -9
- data/rails_plugins/rspec/lib/spec/matchers/include.rb +7 -7
- data/rails_plugins/rspec/lib/spec/matchers/match.rb +6 -6
- data/rails_plugins/rspec/lib/spec/matchers/operator_matcher.rb +1 -1
- data/rails_plugins/rspec/lib/spec/matchers/raise_error.rb +6 -6
- data/rails_plugins/rspec/lib/spec/matchers/respond_to.rb +7 -7
- data/rails_plugins/rspec/lib/spec/matchers/satisfy.rb +4 -4
- data/rails_plugins/rspec/lib/spec/matchers/simple_matcher.rb +3 -3
- data/rails_plugins/rspec/lib/spec/matchers/throw_symbol.rb +8 -8
- data/rails_plugins/rspec/lib/spec/matchers.rb +2 -2
- data/rails_plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb +3 -3
- data/rails_plugins/rspec/lib/spec/mocks/argument_expectation.rb +32 -32
- data/rails_plugins/rspec/lib/spec/mocks/error_generator.rb +13 -13
- data/rails_plugins/rspec/lib/spec/mocks/errors.rb +1 -1
- data/rails_plugins/rspec/lib/spec/mocks/message_expectation.rb +38 -38
- data/rails_plugins/rspec/lib/spec/mocks/methods.rb +3 -3
- data/rails_plugins/rspec/lib/spec/mocks/mock.rb +5 -5
- data/rails_plugins/rspec/lib/spec/mocks/order_group.rb +5 -5
- data/rails_plugins/rspec/lib/spec/mocks/proxy.rb +4 -4
- data/rails_plugins/rspec/lib/spec/mocks/space.rb +3 -3
- data/rails_plugins/rspec/lib/spec/mocks/spec_methods.rb +1 -1
- data/rails_plugins/rspec/lib/spec/mocks.rb +13 -13
- data/rails_plugins/rspec/lib/spec/rake/spectask.rb +4 -4
- data/rails_plugins/rspec/lib/spec/rake/verify_rcov.rb +9 -9
- data/rails_plugins/rspec/lib/spec/runner/backtrace_tweaker.rb +2 -2
- data/rails_plugins/rspec/lib/spec/runner/formatter/base_formatter.rb +7 -7
- data/rails_plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb +13 -13
- data/rails_plugins/rspec/lib/spec/runner/formatter/failing_examples_formatter.rb +1 -1
- data/rails_plugins/rspec/lib/spec/runner/formatter/html_formatter.rb +8 -8
- data/rails_plugins/rspec/lib/spec/runner/formatter/profile_formatter.rb +7 -7
- data/rails_plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb +2 -2
- data/rails_plugins/rspec/lib/spec/runner/formatter/snippet_extractor.rb +5 -5
- data/rails_plugins/rspec/lib/spec/runner/formatter/specdoc_formatter.rb +4 -4
- data/rails_plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb +6 -6
- data/rails_plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb +12 -12
- data/rails_plugins/rspec/lib/spec/runner/heckle_runner.rb +6 -6
- data/rails_plugins/rspec/lib/spec/runner/option_parser.rb +5 -5
- data/rails_plugins/rspec/lib/spec/runner/options.rb +8 -8
- data/rails_plugins/rspec/lib/spec/runner/reporter.rb +14 -14
- data/rails_plugins/rspec/lib/spec/runner.rb +41 -41
- data/rails_plugins/rspec/lib/spec/story/extensions/main.rb +6 -6
- data/rails_plugins/rspec/lib/spec/story/extensions/regexp.rb +1 -1
- data/rails_plugins/rspec/lib/spec/story/extensions/string.rb +1 -1
- data/rails_plugins/rspec/lib/spec/story/given_scenario.rb +1 -1
- data/rails_plugins/rspec/lib/spec/story/runner/plain_text_story_runner.rb +6 -6
- data/rails_plugins/rspec/lib/spec/story/runner/scenario_collector.rb +2 -2
- data/rails_plugins/rspec/lib/spec/story/runner/scenario_runner.rb +5 -5
- data/rails_plugins/rspec/lib/spec/story/runner/story_mediator.rb +20 -20
- data/rails_plugins/rspec/lib/spec/story/runner/story_parser.rb +29 -29
- data/rails_plugins/rspec/lib/spec/story/runner/story_runner.rb +8 -8
- data/rails_plugins/rspec/lib/spec/story/runner.rb +7 -7
- data/rails_plugins/rspec/lib/spec/story/scenario.rb +1 -1
- data/rails_plugins/rspec/lib/spec/story/step.rb +5 -5
- data/rails_plugins/rspec/lib/spec/story/step_group.rb +12 -12
- data/rails_plugins/rspec/lib/spec/story/step_mother.rb +6 -6
- data/rails_plugins/rspec/lib/spec/story/story.rb +5 -5
- data/rails_plugins/rspec/lib/spec/story/world.rb +16 -16
- data/rails_plugins/rspec/lib/spec/translator.rb +21 -21
- data/rails_plugins/rspec/lib/spec/version.rb +2 -2
- data/rails_plugins/rspec/lib/spec.rb +1 -1
- data/rails_plugins/rspec/pre_commit/lib/pre_commit/pre_commit.rb +1 -1
- data/rails_plugins/rspec/pre_commit/lib/pre_commit/rspec.rb +6 -6
- data/rails_plugins/rspec/pre_commit/lib/pre_commit/rspec_on_rails.rb +6 -6
- data/rails_plugins/rspec/pre_commit/spec/pre_commit/pre_commit_spec.rb +1 -1
- data/rails_plugins/rspec/pre_commit/spec/pre_commit/rspec_on_rails_spec.rb +1 -1
- data/rails_plugins/rspec/report.html +3 -3
- data/rails_plugins/rspec/spec/autotest/discover_spec.rb +2 -2
- data/rails_plugins/rspec/spec/autotest/rspec_spec.rb +30 -30
- data/rails_plugins/rspec/spec/autotest_matchers.rb +7 -7
- data/rails_plugins/rspec/spec/spec/example/configuration_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/example/example_group_factory_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/example/example_group_methods_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/example/example_group_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/example/example_matcher_spec.rb +10 -10
- data/rails_plugins/rspec/spec/spec/example/example_runner_spec.rb +29 -29
- data/rails_plugins/rspec/spec/spec/example/example_spec.rb +6 -6
- data/rails_plugins/rspec/spec/spec/example/nested_example_group_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/example/pending_module_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/example/predicate_matcher_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/example/shared_example_group_spec.rb +4 -4
- data/rails_plugins/rspec/spec/spec/expectations/extensions/object_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec/expectations/fail_with_spec.rb +8 -8
- data/rails_plugins/rspec/spec/spec/extensions/main_spec.rb +6 -6
- data/rails_plugins/rspec/spec/spec/interop/test/unit/spec_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb +2 -2
- data/rails_plugins/rspec/spec/spec/interop/test/unit/testcase_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/matchers/be_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/matchers/change_spec.rb +14 -14
- data/rails_plugins/rspec/spec/spec/matchers/description_generation_spec.rb +25 -25
- data/rails_plugins/rspec/spec/spec/matchers/exist_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/matchers/handler_spec.rb +16 -16
- data/rails_plugins/rspec/spec/spec/matchers/have_spec.rb +13 -13
- data/rails_plugins/rspec/spec/spec/matchers/match_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/matchers/matcher_methods_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/matchers/operator_matcher_spec.rb +17 -17
- data/rails_plugins/rspec/spec/spec/matchers/raise_error_spec.rb +20 -20
- data/rails_plugins/rspec/spec/spec/matchers/respond_to_spec.rb +10 -10
- data/rails_plugins/rspec/spec/spec/matchers/simple_matcher_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/matchers/throw_symbol_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/mocks/any_number_of_times_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_10263.rb +3 -3
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_11545_spec.rb +4 -4
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_15719_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_8302_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec/mocks/mock_ordering_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/mocks/mock_space_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/mock_spec.rb +56 -56
- data/rails_plugins/rspec/spec/spec/mocks/multiple_return_value_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/mocks/once_counts_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/options_hash_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/partial_mock_spec.rb +16 -16
- data/rails_plugins/rspec/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +10 -10
- data/rails_plugins/rspec/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +13 -13
- data/rails_plugins/rspec/spec/spec/mocks/stub_spec.rb +7 -7
- data/rails_plugins/rspec/spec/spec/mocks/twice_counts_spec.rb +6 -6
- data/rails_plugins/rspec/spec/spec/package/bin_spec_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/class_and_argument_parser_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/runner/command_line_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/drb_command_line_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/runner/execution_context_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.4.html +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +2 -2
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5.html +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6.html +3 -3
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/profile_formatter_spec.rb +9 -9
- data/rails_plugins/rspec/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +4 -4
- data/rails_plugins/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/story/html_formatter_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html +13 -13
- data/rails_plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +2 -2
- data/rails_plugins/rspec/spec/spec/runner/heckle_runner_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/runner/option_parser_spec.rb +9 -9
- data/rails_plugins/rspec/spec/spec/runner/options_spec.rb +13 -13
- data/rails_plugins/rspec/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/spec_classes.rb +8 -8
- data/rails_plugins/rspec/spec/spec/story/builders.rb +7 -7
- data/rails_plugins/rspec/spec/spec/story/extensions/main_spec.rb +6 -6
- data/rails_plugins/rspec/spec/spec/story/given_scenario_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/story/runner/plain_text_story_runner_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec/story/runner/scenario_collector_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/story/runner/scenario_runner_spec.rb +21 -21
- data/rails_plugins/rspec/spec/spec/story/runner/story_mediator_spec.rb +22 -22
- data/rails_plugins/rspec/spec/spec/story/runner/story_parser_spec.rb +55 -55
- data/rails_plugins/rspec/spec/spec/story/runner/story_runner_spec.rb +44 -44
- data/rails_plugins/rspec/spec/spec/story/runner_spec.rb +18 -18
- data/rails_plugins/rspec/spec/spec/story/scenario_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/story/step_group_spec.rb +20 -20
- data/rails_plugins/rspec/spec/spec/story/step_mother_spec.rb +14 -14
- data/rails_plugins/rspec/spec/spec/story/step_spec.rb +33 -33
- data/rails_plugins/rspec/spec/spec/story/story_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec/translator_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec_helper.rb +5 -5
- data/rails_plugins/rspec/stories/resources/helpers/story_helper.rb +1 -1
- data/rails_plugins/rspec/stories/resources/steps/running_rspec.rb +4 -4
- data/rails_plugins/rspec/stories/resources/test/spec_and_test_together.rb +2 -2
- data/rails_plugins/rspec/stories/resources/test/test_case_with_should_methods.rb +1 -1
- data/rails_plugins/rspec/story_server/prototype/javascripts/builder.js +14 -14
- data/rails_plugins/rspec/story_server/prototype/javascripts/controls.js +61 -61
- data/rails_plugins/rspec/story_server/prototype/javascripts/dragdrop.js +144 -144
- data/rails_plugins/rspec/story_server/prototype/javascripts/effects.js +127 -127
- data/rails_plugins/rspec/story_server/prototype/javascripts/rspec.js +15 -15
- data/rails_plugins/rspec/story_server/prototype/javascripts/scriptaculous.js +7 -7
- data/rails_plugins/rspec/story_server/prototype/javascripts/slider.js +37 -37
- data/rails_plugins/rspec/story_server/prototype/javascripts/sound.js +4 -4
- data/rails_plugins/rspec/story_server/prototype/javascripts/unittest.js +66 -66
- data/rails_plugins/rspec/story_server/prototype/stories.html +9 -9
- data/rails_plugins/rspec_on_rails/MIT-LICENSE +11 -11
- data/rails_plugins/rspec_on_rails/generators/rspec/templates/rcov.opts +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec/templates/script/spec_server +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec_controller/USAGE +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec_controller/templates/helper_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/generators/rspec_controller/templates/view_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/rspec_scaffold_generator.rb +12 -12
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/controller_spec.rb +35 -35
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/edit_erb_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/helper_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/index_erb_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/new_erb_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/routing_spec.rb +11 -11
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/show_erb_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/autotest/rails_rspec.rb +3 -3
- data/rails_plugins/rspec_on_rails/lib/spec/rails/example/controller_example_group.rb +4 -4
- data/rails_plugins/rspec_on_rails/lib/spec/rails/example/rails_example_group.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails/example/render_observer.rb +4 -4
- data/rails_plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/base.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails/extensions/spec/matchers/have.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails/matchers/assert_select.rb +10 -10
- data/rails_plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb +6 -6
- data/rails_plugins/rspec_on_rails/lib/spec/rails/matchers/render_template.rb +7 -7
- data/rails_plugins/rspec_on_rails/lib/spec/rails/story_adapter.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails.rb +8 -8
- data/rails_plugins/rspec_on_rails/spec/rails/autotest/mappings_spec.rb +6 -6
- data/rails_plugins/rspec_on_rails/spec/rails/example/controller_isolation_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec/rails/example/controller_spec_spec.rb +22 -22
- data/rails_plugins/rspec_on_rails/spec/rails/example/helper_spec_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec/rails/example/ivar_proxy_spec.rb +3 -3
- data/rails_plugins/rspec_on_rails/spec/rails/example/shared_behaviour_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/spec/rails/example/view_spec_spec.rb +8 -8
- data/rails_plugins/rspec_on_rails/spec/rails/extensions/action_view_base_spec.rb +7 -7
- data/rails_plugins/rspec_on_rails/spec/rails/extensions/active_record_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/assert_select_spec.rb +37 -37
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/description_generation_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/have_text_spec.rb +4 -4
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/redirect_to_spec.rb +26 -26
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/render_spec.rb +18 -18
- data/rails_plugins/rspec_on_rails/spec/rails/mocks/mock_model_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/spec/spec_helper.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec_resources/controllers/controller_spec_controller.rb +9 -9
- data/rails_plugins/rspec_on_rails/spec_resources/controllers/redirect_spec_controller.rb +7 -7
- data/rails_plugins/rspec_on_rails/spec_resources/controllers/render_spec_controller.rb +5 -5
- data/rails_plugins/rspec_on_rails/spec_resources/controllers/rjs_spec_controller.rb +10 -10
- data/rails_plugins/rspec_on_rails/spec_resources/helpers/explicit_helper.rb +1 -1
- data/rails_plugins/rspec_on_rails/stories/transactions_should_rollback.rb +1 -1
- data/rails_plugins/rspec_on_rails/tasks/rspec.rake +4 -4
- data/script/txt2html +1 -1
- data/setup.rb +4 -4
- data/tasks/hack.rake +3 -3
- data/website/index.html +2 -2
- data/website/index.txt +1 -1
- data/website/index_devjavu +3 -3
- data/website/javascripts/rounded_corners_lite.inc.js +1 -1
- data/website/stylesheets/screen.css +2 -2
- data.tar.gz.sig +0 -0
- metadata +2 -1
- metadata.gz.sig +2 -1
@@ -9,39 +9,39 @@ describe "After loading languages, Globalite" do
|
|
9
9
|
it 'should have loaded en-US spec localization' do
|
10
10
|
Globalite.locales.should include(:"en-US")
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
it 'should have some default translations' do
|
14
14
|
:error_message_exclusion.l.should_not be(nil)
|
15
15
|
Globalite.localize(:welcome_friend).should_not be(nil)
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
it 'should have loaded the Rails localizations' do
|
19
19
|
[:"es-*", :"fr-FR", :"pt-PT", :"en-US", :"it-*", :"es-ES", :"pt-BR", :"en-UK"].each { |locale| Globalite.locales.should include(locale) }
|
20
20
|
[:UK, :US, :ES, :FR, :BR, :PT].each { |country| Globalite.countries.should include(country) }
|
21
21
|
[:en, :es, :fr, :it, :pt].each { |language| Globalite.languages.should include(language) }
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
it 'should have both the UI and the RAILS translations even if a country isn t selected' do
|
25
25
|
Globalite.language = :fr
|
26
26
|
:welcome_friend.l.should_not == "__localization_missing__"
|
27
27
|
:date_helper_one_month.l.should_not == "__localization_missing__"
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
30
|
it 'should have a list of unique languages' do
|
31
31
|
Globalite.languages.should be_an_instance_of(Array)
|
32
32
|
Globalite.languages.should == Globalite.languages.uniq
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
it 'should have a list of unique countries' do
|
36
36
|
Globalite.countries.should be_an_instance_of(Array)
|
37
37
|
Globalite.countries.should == Globalite.countries.uniq
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
it 'should have a list of unique locales' do
|
41
41
|
Globalite.locales.should be_an_instance_of(Array)
|
42
42
|
Globalite.locales.should == Globalite.locales.uniq
|
43
43
|
end
|
44
|
-
|
44
|
+
|
45
45
|
it "should have at least some English localization" do
|
46
46
|
Globalite.languages.should include(:en)
|
47
47
|
end
|
@@ -52,7 +52,7 @@ describe "After loading languages, Globalite" do
|
|
52
52
|
Globalite.current_country = :FR
|
53
53
|
Globalite.current_country.should == (:FR)
|
54
54
|
end
|
55
|
-
|
55
|
+
|
56
56
|
it "should be able to switch between existing languages" do
|
57
57
|
Globalite.language = :fr
|
58
58
|
Globalite.locale.should == (:'fr-FR')
|
@@ -60,7 +60,7 @@ describe "After loading languages, Globalite" do
|
|
60
60
|
Globalite.localize(:welcome_friend).should_not == string
|
61
61
|
Globalite.localize(:welcome_friend).should == "Bienvenue l'ami!"
|
62
62
|
Globalite.localize(:welcome_friend).should_not == "__localization_missing__"
|
63
|
-
|
63
|
+
|
64
64
|
Globalite.language = :es
|
65
65
|
Globalite.localize(:welcome_friend).should_not == string
|
66
66
|
Globalite.localize(:welcome_friend).should_not == "__localization_missing__"
|
@@ -68,7 +68,7 @@ describe "After loading languages, Globalite" do
|
|
68
68
|
Globalite.current_language = nil
|
69
69
|
Globalite.localize(:welcome_friend).should_not == string
|
70
70
|
Globalite.localize(:welcome_friend).should_not == "__localization_missing__"
|
71
|
-
|
71
|
+
|
72
72
|
Globalite.current_language = :en
|
73
73
|
Globalite.current_country = :US
|
74
74
|
Globalite.locales.should include(:"en-US")
|
@@ -99,10 +99,10 @@ describe "After loading languages, Globalite" do
|
|
99
99
|
Globalite.language = :fr
|
100
100
|
Globalite.locale.should == "fr-*".to_sym
|
101
101
|
Globalite.countries.include?(:XY).should be(false)
|
102
|
-
|
102
|
+
|
103
103
|
Globalite.country = :XY
|
104
104
|
Globalite.current_locale.should == "fr-*".to_sym
|
105
|
-
end
|
105
|
+
end
|
106
106
|
|
107
107
|
it "should let you assign a valid locale" do
|
108
108
|
Globalite.current_locale = :"fr-*"
|
@@ -112,7 +112,7 @@ describe "After loading languages, Globalite" do
|
|
112
112
|
it "should auto assign a language if you try to set a country defined in an available locale" do
|
113
113
|
Globalite.current_locale = :"fr-*"
|
114
114
|
Globalite.current_country = :US
|
115
|
-
Globalite.current_locale.should == "en-US".to_sym
|
115
|
+
Globalite.current_locale.should == "en-US".to_sym
|
116
116
|
end
|
117
117
|
|
118
118
|
it "should auto assign a wild card if a country isn't assigned" do
|
@@ -120,10 +120,10 @@ describe "After loading languages, Globalite" do
|
|
120
120
|
Globalite.current_locale.should == "fr-*".to_sym
|
121
121
|
end
|
122
122
|
|
123
|
-
it "should find translations for a locale without country even though there's no generic translation for the language" do
|
123
|
+
it "should find translations for a locale without country even though there's no generic translation for the language" do
|
124
124
|
Globalite.current_locale = :"fr-*"
|
125
125
|
Globalite.current_language = :en
|
126
|
-
Globalite.current_language.should == :en
|
126
|
+
Globalite.current_language.should == :en
|
127
127
|
Globalite.localizations.should_not be {}
|
128
128
|
end
|
129
129
|
|
@@ -152,14 +152,14 @@ describe "After loading languages, Globalite" do
|
|
152
152
|
Globalite.add_reserved_key key
|
153
153
|
Globalite.reserved_keys.size.should == 2
|
154
154
|
end
|
155
|
-
|
155
|
+
|
156
156
|
it "shouldn't be able to set a unsupported locale" do
|
157
157
|
Locale.set_code :"te-st"
|
158
158
|
Locale.code.should == :"en-*"
|
159
159
|
Locale.set_code 'test'
|
160
160
|
Locale.code.should == :"en-*"
|
161
161
|
end
|
162
|
-
|
162
|
+
|
163
163
|
end
|
164
164
|
|
165
165
|
describe "When a non-existent language is set" do
|
@@ -195,11 +195,11 @@ describe "a localization key (in general)" do
|
|
195
195
|
Globalite.language = :fr
|
196
196
|
Globalite.language = :en
|
197
197
|
Globalite.locale.should == :'en-*'
|
198
|
-
|
198
|
+
|
199
199
|
:welcome_friend.localize.should == "Welcome mate!"
|
200
200
|
:error_message_exclusion.l.should == "is reserved"
|
201
201
|
end
|
202
|
-
|
202
|
+
|
203
203
|
it "should return an optional string if the localization is missing" do
|
204
204
|
:unknown_key.l("this is my replacement string").should == "this is my replacement string"
|
205
205
|
end
|
@@ -217,33 +217,33 @@ describe "a localization key (in general)" do
|
|
217
217
|
:welcome_user.l_with_args({:user => :user.l}).should == "Cher utilisateur, Bienvenue!"
|
218
218
|
:many_args_test.l_with_args({:name => 'Matt', :what => 'déchire', :other => 'Serieusement'}).should == 'Serieusement, Matt vraiment déchire comme une bete ;)'
|
219
219
|
end
|
220
|
-
|
220
|
+
|
221
221
|
it "should handle localizated pluralization properly" do
|
222
222
|
Globalite.current_language = :fr
|
223
223
|
:simple_pluralization.l.should == "2 erreurs"
|
224
224
|
end
|
225
|
-
|
225
|
+
|
226
226
|
it "should handle custom pluralization properly" do
|
227
227
|
Globalite.current_language = :fr
|
228
228
|
:pluralization_test.l.should == "Heidi a vu trois 3 chevaux dans le parc"
|
229
229
|
end
|
230
|
-
|
230
|
+
|
231
231
|
it "should handle pluralization with passed arguments" do
|
232
232
|
Globalite.current_language = :fr
|
233
233
|
:pluralization_with_passed_args.l_with_args({:count => 2}).should == "Heidi a vu trois 2 chevaux dans le parc"
|
234
234
|
end
|
235
|
-
|
235
|
+
|
236
236
|
end
|
237
237
|
|
238
238
|
describe "an alternative location with localization files" do
|
239
239
|
before(:all) do
|
240
240
|
Globalite.add_localization_source(File.dirname(__FILE__) + '/lang/rails')
|
241
241
|
end
|
242
|
-
|
242
|
+
|
243
243
|
it "could be added to the localization source path" do
|
244
244
|
Globalite.load_localization!.should include("/spec/lang/rails/zz.yml")
|
245
245
|
end
|
246
|
-
|
246
|
+
|
247
247
|
it "should have been loaded properly" do
|
248
248
|
Globalite.languages.should include(:zz)
|
249
249
|
Globalite.locales.should include(:"zz-*")
|
@@ -1,14 +1,14 @@
|
|
1
1
|
namespace :globalite do
|
2
2
|
namespace :localization do
|
3
3
|
|
4
|
-
# Returns a hash with the missing localizations compared to the original locale
|
4
|
+
# Returns a hash with the missing localizations compared to the original locale
|
5
5
|
def missing_localizations(org_base='en-US')
|
6
6
|
@langs = {}
|
7
7
|
@missing_localizations = {}
|
8
8
|
@l_files = Dir[File.join( RAILS_ROOT, '/lang/ui', '*.yml')]
|
9
|
-
@l_files.each do |file|
|
9
|
+
@l_files.each do |file|
|
10
10
|
if YAML.load_file(file)
|
11
|
-
@langs[File.basename(file, '.*')] = YAML.load_file(file).symbolize_keys
|
11
|
+
@langs[File.basename(file, '.*')] = YAML.load_file(file).symbolize_keys
|
12
12
|
else
|
13
13
|
p "error with the following file: #{file}, the file might be empty"
|
14
14
|
end
|
@@ -36,11 +36,11 @@ namespace :globalite do
|
|
36
36
|
@missing_localizations = missing_localizations(@org_base)
|
37
37
|
if @missing_localizations.blank?
|
38
38
|
p 'all localization files are up to date'
|
39
|
-
else
|
39
|
+
else
|
40
40
|
@missing_localizations.each_key do |lang|
|
41
41
|
p "#{@missing_localizations[lang].length} translations missing in #{lang}" if @missing_localizations[lang].length > 0
|
42
|
-
end
|
43
|
-
end
|
42
|
+
end
|
43
|
+
end
|
44
44
|
end
|
45
45
|
|
46
46
|
end
|
data/rails_plugins/rspec/CHANGES
CHANGED
@@ -179,8 +179,8 @@ follow the upgrade instructions and run 'script/generate rspec' you'll be fine,
|
|
179
179
|
step you need to manually go into spec_helper.rb and remove the call to that method (if present - it
|
180
180
|
might not be if you haven't upgraded in a while).
|
181
181
|
|
182
|
-
Warning: Implementors of custom formatters. Formatters will now be sent an Example object instead of just a
|
183
|
-
String for #example_started, #example_passed and #example_failed. In certain scenarios
|
182
|
+
Warning: Implementors of custom formatters. Formatters will now be sent an Example object instead of just a
|
183
|
+
String for #example_started, #example_passed and #example_failed. In certain scenarios
|
184
184
|
(Spec::Ui with Spec::Distributed), the formatter must ask the Example for its sequence number instead of
|
185
185
|
keeping track of a sequence number internal to the formatter. Most of you shouldn't need to upgrade
|
186
186
|
your formatters though - the Example#to_s method returns the example name/description, so you should be
|
@@ -220,7 +220,7 @@ able to use the passed Example instance as if it were a String.
|
|
220
220
|
* Fixed [#11903] config.include with behaviour_type 'hash' does not work
|
221
221
|
* Examples without blocks and pending is now reported with a P instead of a *
|
222
222
|
* Pending blocks that now pass are rendered blue
|
223
|
-
* New behaviour for after: If an after block raises an error, the other ones will still run instead of bailing at the first.
|
223
|
+
* New behaviour for after: If an after block raises an error, the other ones will still run instead of bailing at the first.
|
224
224
|
* Made it possible to run spec from RSpec.tmbundle with --drb against a Rails spec_server.
|
225
225
|
* Applied [#11868] Add ability for pending to optionally hold a failing block and to fail when it passes (Patch from Bob Cotton)
|
226
226
|
* Fixed [#11843] watir_behaviour missing from spec_ui gem
|
@@ -344,7 +344,7 @@ This is a bugfix release.
|
|
344
344
|
* Applied [#10567] Call setup and teardown using before and after callbacks
|
345
345
|
|
346
346
|
== Version 0.9.2
|
347
|
-
This is a quick maintenance release.
|
347
|
+
This is a quick maintenance release.
|
348
348
|
|
349
349
|
* Added some website love
|
350
350
|
* Fixed [#10542] reverse predicate matcher syntax
|
@@ -365,13 +365,13 @@ backwards compatibility). This allows you to express specs like this:
|
|
365
365
|
|
366
366
|
The command line features four new options that give you more control over what specs
|
367
367
|
are being run and in what order. This can be used to verify that your specs are
|
368
|
-
independent (by running in opposite order with --reverse). It can also be used to cut
|
368
|
+
independent (by running in opposite order with --reverse). It can also be used to cut
|
369
369
|
down feedback time by running the most recently modified specs first (--loadby mtime --reverse).
|
370
370
|
|
371
371
|
Further, --example replaces the old --spec option, and it can now take a file name of
|
372
|
-
spec names as an alternative to just a spec name. The --format failing_examples:file.txt
|
373
|
-
option allows you to output an --example compatible file, which makes it possible to only
|
374
|
-
rerun the specs that failed in the last run. Spec::Rails uses all of these four options
|
372
|
+
spec names as an alternative to just a spec name. The --format failing_examples:file.txt
|
373
|
+
option allows you to output an --example compatible file, which makes it possible to only
|
374
|
+
rerun the specs that failed in the last run. Spec::Rails uses all of these four options
|
375
375
|
by default to optimise your RSpec experience.
|
376
376
|
|
377
377
|
There is now a simple configuration model. For Spec::Rails, you do something like this:
|
@@ -388,7 +388,7 @@ RSpec's own mock framework. Just put this:
|
|
388
388
|
Spec::Runner.configure do |config|
|
389
389
|
config.mock_with :mocha
|
390
390
|
end
|
391
|
-
|
391
|
+
|
392
392
|
or this:
|
393
393
|
|
394
394
|
Spec::Runner.configure do |config|
|
@@ -457,7 +457,7 @@ See Spec::DSL::Behaviour for more on predicate_matchers
|
|
457
457
|
* Moved all of the Spec::Rails specs down to the plugins directory - now you can run the specs after you install.
|
458
458
|
* Updated RSpec.tmbundle to the 0.9 syntax and replaced context/specify with describe/it.
|
459
459
|
* Applied [#9232] ActionController::Base#render is sometimes protected (patch from Dan Manges)
|
460
|
-
* Added --reverse option, allowing contexts/specs to be run in reverse order.
|
460
|
+
* Added --reverse option, allowing contexts/specs to be run in reverse order.
|
461
461
|
* Added --loadby option, allowing better control over load order for spec files. mtime and file.txt supported.
|
462
462
|
* Implemented [#8696] --order option (see --reverse and --loadby)
|
463
463
|
* Added describe/it as aliases for context/specify - suggestion from Dan North.
|
@@ -485,7 +485,7 @@ This release introduces a new approach to handling expectations using Expression
|
|
485
485
|
See Upgrade[http://rspec.rubyforge.org/upgrade.html], Spec::Expectations, Spec::Matchers and RELEASE-PLAN for more info.
|
486
486
|
|
487
487
|
This release also improves the spec command line by adding DRb support and making it possible to
|
488
|
-
store command line options in a file. This means a more flexible RSpec experience with Rails,
|
488
|
+
store command line options in a file. This means a more flexible RSpec experience with Rails,
|
489
489
|
Rake and editor plugins like TextMate.
|
490
490
|
|
491
491
|
It also sports myriad new features, bug fixes, patches and general goodness:
|
@@ -637,7 +637,7 @@ Bug fixes and a couple o' new features.
|
|
637
637
|
* Added [#6560] controller.session should be available before the action
|
638
638
|
* Added support for should_have_rjs :visual_effect
|
639
639
|
* Different printing and colours for unmet expectations (red) and other exceptions (magenta)
|
640
|
-
* Simplified method_missing on mock_methods to make it less invasive on partial mocks.
|
640
|
+
* Simplified method_missing on mock_methods to make it less invasive on partial mocks.
|
641
641
|
|
642
642
|
== Version 0.7.0
|
643
643
|
|
@@ -751,7 +751,7 @@ RSpec on Rails.
|
|
751
751
|
* Applied [#5065] to support using define_method rather than method_missing to capture expected messages on mocks. Thanks to Eero Saynatkari for the tip that made it work.
|
752
752
|
* Restructured directories and Modules in order to separate rspec into three distinct Modules: Spec::Expectations, Spec::Runner and Spec::Mocks. This will allow us to more easily integrate other mock frameworks and/or allow test/unit users to take advantage of the expectation API.
|
753
753
|
* Applied [#5620] support any boolean method and arbitrary comparisons (5.should_be < 6) (Patch from Mike Williams)
|
754
|
-
|
754
|
+
|
755
755
|
== Version 0.6.3
|
756
756
|
|
757
757
|
This release fixes some minor bugs related to RSpec on Rails
|
@@ -790,7 +790,7 @@ This release makes an official commitment to underscore_syntax (with no more sup
|
|
790
790
|
* Fixed bug (5292) that caused mock argument matching to fail
|
791
791
|
* Converted ALL tests to use underscore syntax
|
792
792
|
* Fixed all remaining problems with underscores revealed by converting all the tests to underscores
|
793
|
-
* Enhanced sugar to support combinations of methods (i.e. once.and_return)
|
793
|
+
* Enhanced sugar to support combinations of methods (i.e. once.and_return)
|
794
794
|
* Simplified helper structure taking advantage of dot/underscore combos (i.e. should.be.an_instance_of, which can be expressed as should be_an_instance_of)
|
795
795
|
* Added support for at_most in mocks
|
796
796
|
* Added support for should_not_receive(:msg) (will be removing should_receive(:msg).never some time soon)
|
@@ -844,7 +844,7 @@ minor enhancements.
|
|
844
844
|
* Output of various formatters is now flushed - to get more continuous output.
|
845
845
|
|
846
846
|
== Version 0.5.11
|
847
|
-
This release makes test2spec usable with Rails (with some manual steps).
|
847
|
+
This release makes test2spec usable with Rails (with some manual steps).
|
848
848
|
See http://rspec.rubyforge.org/tools/rails.html for more details
|
849
849
|
|
850
850
|
* test2spec now correctly translates bodies of helper methods (non- test_*, setup and teardown ones).
|
@@ -1039,7 +1039,7 @@ This release adds some shoulds and improves error reporting
|
|
1039
1039
|
|
1040
1040
|
== Version 0.1.0
|
1041
1041
|
|
1042
|
-
This is the first preview release of RSpec, a Behaviour-Driven Development library for Ruby
|
1042
|
+
This is the first preview release of RSpec, a Behaviour-Driven Development library for Ruby
|
1043
1043
|
|
1044
1044
|
* Added Rake script with tasks for gems, rdoc etc.
|
1045
1045
|
* Added an XForge task to make release go easier.
|
data/rails_plugins/rspec/README
CHANGED
@@ -16,7 +16,7 @@ Spec::Expectations supports setting expectations on your objects so you
|
|
16
16
|
can do things like:
|
17
17
|
|
18
18
|
result.should equal(expected_result)
|
19
|
-
|
19
|
+
|
20
20
|
Spec::Mocks supports creating Mock Objects, Stubs, and adding Mock/Stub
|
21
21
|
behaviour to your existing objects.
|
22
22
|
|
@@ -58,7 +58,7 @@ Once those are all installed, you should be able to run the suite with the follo
|
|
58
58
|
* cd ..
|
59
59
|
* rake pre_commit
|
60
60
|
|
61
|
-
Note that RSpec itself - once built - doesn't have any dependencies outside the Ruby core
|
61
|
+
Note that RSpec itself - once built - doesn't have any dependencies outside the Ruby core
|
62
62
|
and stdlib - with a few exceptions:
|
63
63
|
|
64
64
|
* The spec command line uses diff-lcs when --diff is specified.
|
data/rails_plugins/rspec/UPGRADE
CHANGED
@@ -25,7 +25,7 @@ You'll need to update spec/spec_helper.rb accordingly. You can either
|
|
25
25
|
just re-generate it:
|
26
26
|
|
27
27
|
script/generate rspec
|
28
|
-
|
28
|
+
|
29
29
|
Or modify spec_helper.rb based on the template, which can be found at:
|
30
30
|
|
31
31
|
vendor/plugins/rspec_on_rails/generators/rspec/templates/spec_helper.rb
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Used just for us to develop rspec with Autotest
|
2
|
-
# We could symbolic link rspec/vendor/plugins/rspec => rspec/., but
|
2
|
+
# We could symbolic link rspec/vendor/plugins/rspec => rspec/., but
|
3
3
|
# this leads to a problem with subversion on windows. Autotest
|
4
4
|
# uses Ruby's load path, which contains ".", so this is a workaround
|
5
5
|
# (albeit, an unclean one)
|
@@ -3,17 +3,17 @@ require File.dirname(__FILE__) + '/spec_helper'
|
|
3
3
|
# Run spec w/ -fs to see the output of this file
|
4
4
|
|
5
5
|
describe "Examples with no descriptions" do
|
6
|
-
|
6
|
+
|
7
7
|
# description is auto-generated as "should equal(5)" based on the last #should
|
8
8
|
it do
|
9
9
|
3.should equal(3)
|
10
10
|
5.should equal(5)
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
it { 3.should be < 5 }
|
14
|
-
|
14
|
+
|
15
15
|
it { ["a"].should include("a") }
|
16
|
-
|
16
|
+
|
17
17
|
it { [1,2,3].should respond_to(:size) }
|
18
|
-
|
18
|
+
|
19
19
|
end
|
@@ -10,7 +10,7 @@ describe "State created in before(:all)" do
|
|
10
10
|
before :each do
|
11
11
|
@isolated = 1
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
it "should be accessible from example" do
|
15
15
|
@sideeffect.should == 1
|
16
16
|
$global.should == 1
|
@@ -32,7 +32,7 @@ describe "State created in before(:all)" do
|
|
32
32
|
after :each do
|
33
33
|
$global += 1
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
after :all do
|
37
37
|
$global.should == 3
|
38
38
|
$global = 0
|
@@ -9,21 +9,21 @@ def behave_as_musician
|
|
9
9
|
end
|
10
10
|
|
11
11
|
module BehaveAsExample
|
12
|
-
|
12
|
+
|
13
13
|
class BluesGuitarist
|
14
14
|
def read_notes; end
|
15
15
|
def turn_down_amp; end
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
class RockGuitarist
|
19
19
|
def read_notes; end
|
20
20
|
def turn_down_amp; end
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
class ClassicGuitarist
|
24
24
|
def read_notes; end
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
describe BluesGuitarist do
|
28
28
|
it "should behave as guitarist" do
|
29
29
|
BluesGuitarist.new.should behave_as_electric_musician
|
@@ -41,5 +41,5 @@ module BehaveAsExample
|
|
41
41
|
ClassicGuitarist.new.should behave_as_musician
|
42
42
|
end
|
43
43
|
end
|
44
|
-
|
44
|
+
|
45
45
|
end
|
@@ -3,21 +3,21 @@ module AnimalSpecHelper
|
|
3
3
|
def initialize(food)
|
4
4
|
@food = food
|
5
5
|
end
|
6
|
-
|
6
|
+
|
7
7
|
def matches?(animal)
|
8
8
|
@animal = animal
|
9
9
|
@animal.eats?(@food)
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
def failure_message
|
13
13
|
"expected #{@animal} to eat #{@food}, but it does not"
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def negative_failure_message
|
17
17
|
"expected #{@animal} not to eat #{@food}, but it does"
|
18
18
|
end
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
def eat(food)
|
22
22
|
Eat.new(food)
|
23
23
|
end
|
@@ -29,7 +29,7 @@ module Animals
|
|
29
29
|
return foods_i_eat.include?(food)
|
30
30
|
end
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
class Mouse < Animal
|
34
34
|
def foods_i_eat
|
35
35
|
[:cheese]
|
@@ -41,11 +41,11 @@ module Animals
|
|
41
41
|
before(:each) do
|
42
42
|
@mouse = Animals::Mouse.new
|
43
43
|
end
|
44
|
-
|
44
|
+
|
45
45
|
it "should eat cheese" do
|
46
46
|
@mouse.should eat(:cheese)
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
it "should not eat cat" do
|
50
50
|
@mouse.should_not eat(:cat)
|
51
51
|
end
|
@@ -27,11 +27,11 @@ describe "A FileAccessor" do
|
|
27
27
|
# These are the primary actor's neighbours, which we mock.
|
28
28
|
file = mock "Pathname"
|
29
29
|
io_processor = mock "IoProcessor"
|
30
|
-
|
30
|
+
|
31
31
|
io = StringIO.new "whatever"
|
32
32
|
file.should_receive(:open).and_yield io
|
33
33
|
io_processor.should_receive(:process).with(io)
|
34
|
-
|
34
|
+
|
35
35
|
accessor.open_and_handle_with(file, io_processor)
|
36
36
|
end
|
37
37
|
|
@@ -4,7 +4,7 @@ class BddFramework
|
|
4
4
|
def intuitive?
|
5
5
|
true
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
def adopted_quickly?
|
9
9
|
true
|
10
10
|
end
|
@@ -19,7 +19,7 @@ describe "BDD framework" do
|
|
19
19
|
it "should be adopted quickly" do
|
20
20
|
@bdd_framework.should be_adopted_quickly
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
it "should be intuitive" do
|
24
24
|
@bdd_framework.should be_intuitive
|
25
25
|
end
|
@@ -6,26 +6,26 @@ module SharedExampleGroupExample
|
|
6
6
|
"stuff"
|
7
7
|
end
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
class AnotherThing
|
11
11
|
def what_things_do
|
12
12
|
"stuff"
|
13
13
|
end
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
class YetAnotherThing
|
17
17
|
def what_things_do
|
18
18
|
"stuff"
|
19
19
|
end
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
# A SharedExampleGroup is an example group that doesn't get run.
|
23
23
|
# You can create one like this:
|
24
24
|
share_examples_for "most things" do
|
25
25
|
def helper_method
|
26
26
|
"helper method"
|
27
27
|
end
|
28
|
-
|
28
|
+
|
29
29
|
it "should do what things do" do
|
30
30
|
@thing.what_things_do.should == "stuff"
|
31
31
|
end
|
@@ -37,19 +37,19 @@ module SharedExampleGroupExample
|
|
37
37
|
def helper_method
|
38
38
|
"helper method"
|
39
39
|
end
|
40
|
-
|
40
|
+
|
41
41
|
it "should do what things do" do
|
42
42
|
@thing.what_things_do.should == "stuff"
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
describe OneThing do
|
47
|
-
# Now you can include the shared example group like this, which
|
47
|
+
# Now you can include the shared example group like this, which
|
48
48
|
# feels more like what you might say ...
|
49
49
|
it_should_behave_like "most things"
|
50
|
-
|
50
|
+
|
51
51
|
before(:each) { @thing = OneThing.new }
|
52
|
-
|
52
|
+
|
53
53
|
it "should have access to helper methods defined in the shared example group" do
|
54
54
|
helper_method.should == "helper method"
|
55
55
|
end
|
@@ -59,7 +59,7 @@ module SharedExampleGroupExample
|
|
59
59
|
# ... or you can include the example group like this, which
|
60
60
|
# feels more like the programming language we love.
|
61
61
|
it_should_behave_like MostThings
|
62
|
-
|
62
|
+
|
63
63
|
before(:each) { @thing = AnotherThing.new }
|
64
64
|
|
65
65
|
it "should have access to helper methods defined in the shared example group" do
|
@@ -71,7 +71,7 @@ module SharedExampleGroupExample
|
|
71
71
|
# ... or you can include the example group like this, which
|
72
72
|
# feels more like the programming language we love.
|
73
73
|
include MostThings
|
74
|
-
|
74
|
+
|
75
75
|
before(:each) { @thing = AnotherThing.new }
|
76
76
|
|
77
77
|
it "should have access to helper methods defined in the shared example group" do
|
@@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), *%w[spec_helper])
|
|
3
3
|
shared_examples_for "non-empty Stack" do
|
4
4
|
|
5
5
|
it { @stack.should_not be_empty }
|
6
|
-
|
6
|
+
|
7
7
|
it "should return the top item when sent #peek" do
|
8
8
|
@stack.peek.should == @last_item_added
|
9
9
|
end
|
@@ -12,18 +12,18 @@ shared_examples_for "non-empty Stack" do
|
|
12
12
|
@stack.peek.should == @last_item_added
|
13
13
|
@stack.peek.should == @last_item_added
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
it "should return the top item when sent #pop" do
|
17
17
|
@stack.pop.should == @last_item_added
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
it "should remove the top item when sent #pop" do
|
21
21
|
@stack.pop.should == @last_item_added
|
22
22
|
unless @stack.empty?
|
23
23
|
@stack.pop.should_not == @last_item_added
|
24
24
|
end
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
end
|
28
28
|
|
29
29
|
shared_examples_for "non-full Stack" do
|