{"id":18820861,"url":"https://github.com/hashrocket/unencumbered","last_synced_at":"2025-04-14T00:17:15.028Z","repository":{"id":683902,"uuid":"327788","full_name":"hashrocket/unencumbered","owner":"hashrocket","description":"Just enough Cucumber in RSpec.","archived":false,"fork":false,"pushed_at":"2010-08-12T18:12:50.000Z","size":111,"stargazers_count":53,"open_issues_count":1,"forks_count":2,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-27T14:21:15.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hashrocket.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-10-05T21:57:01.000Z","updated_at":"2021-01-13T19:27:11.000Z","dependencies_parsed_at":"2022-08-16T10:40:41.800Z","dependency_job_id":null,"html_url":"https://github.com/hashrocket/unencumbered","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Funencumbered","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Funencumbered/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Funencumbered/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Funencumbered/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashrocket","download_url":"https://codeload.github.com/hashrocket/unencumbered/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248410680,"owners_count":21098776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T00:31:10.572Z","updated_at":"2025-04-14T00:17:14.999Z","avatar_url":"https://github.com/hashrocket.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. Unencumbered\n\n_You got Cucumber in my RSpec!_\n\nWrite Cucumber-flavored integration tests as easily as you write your RSpec.\n\n\nh2. To Get Output Like This\n\nOutput from a @rake spec:integration@ run:\n\n\u003cpre\u003e\n\u003ccode\u003e\nUser creates a vurl\n  Scenario:  creating\n    Given I am on the home page\n      When I submit a valid vurl\n        Then I should be on vurl stats page\n        And I should see a success message\n        And my vurl was successfully created\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\nh2. Make a Feature Like This\n\nPut it in a spec file in the _spec/integration_ folder. Here's _user_creates_vurl_spec.rb_ for example:\n\n\u003cpre\u003e\n\u003ccode\u003e\nrequire File.expand_path('../../spec_helper', __FILE__)\n\nFeature \"User creates a vurl\" do\n  Scenario \"creating\" do\n    Given \"I am on the home page\" do\n      executes { visit root_path }\n\n      When \"I submit a valid vurl\" do\n        executes do\n          fill_in \"vurl_url\", :with =\u003e 'http://example.com'\n          click_button 'Vurlify!'\n        end\n\n        Then \"I should be on the vurl stats page\" do\n          current_url.should == stats_url(Vurl.last.slug)\n        end\n\n        And \"I should see a success message\" do\n          response.body.should include('Vurl was successfully created')\n        end\n\n        And \"my vurl was created\" do\n          Vurl.last.url.should == 'http://example.com'\n        end\n      end\n    end\n  end\nend\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\nh2. Set Up\n\nh3. Environment\n\nAdd this line to your _config/environments/test.rb_ file. Make sure to use the @:lib =\u003e false@ item.  We need to require the library manually in the _spec_helper.rb_, since it patches RSpec.\n\n\u003cpre\u003e\n\u003ccode\u003e\nconfig.gem \"unencumbered\", :lib =\u003e false, :version =\u003e 'x.x.x'\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\nh3. spec_helper.rb\n\nMeld these lines into your existing _spec/spec_helper.rb_. Note the _unencumbered_ require needs to be after your RSpec requires, since it patches RSpec.\n\n\u003cpre\u003e\n\u003ccode\u003e\nrequire 'unencumbered'\nrequire 'webrat'\n\nWebrat.configure do |config|\n  config.mode = :rails\nend\n\nSpec::Runner.configure do |config|\n\n  [...your other config code...]\n\n  config.include(Webrat::Matchers, :type =\u003e [:integration])\nend\n\nclass ActionController::Integration::Session; include Spec::Matchers; end\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\nh3. spec.opts\n\nRSpec's nested format reads nicely. Put this line in your _spec/spec.opts_ file.\n\n\u003cpre\u003e\n\u003ccode\u003e\n--format nested\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\nCopyright (c) 2009 Hashrocket.  See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrocket%2Funencumbered","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashrocket%2Funencumbered","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrocket%2Funencumbered/lists"}