Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Commit

Permalink
Fix RSpec specs; @wip a cucumber feature
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh committed Nov 8, 2013
1 parent 47744c6 commit 1454237
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions features/person_signs_up.feature
Expand Up @@ -13,6 +13,7 @@ Feature: a person signs up for the website
Then I should be on the home page
And there should be no new users

@wip
Scenario: I sign up on the site
Given I am on the sign up page
When I fill in the following:
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/magazines_spec.rb
Expand Up @@ -13,7 +13,7 @@
end
end

context "when not signed in" do
context "when signed in" do
it "only shows magazines from the current publication" do
sign_in
visit magazines_url(subdomain: publications.first.subdomain)
Expand Down
1 change: 1 addition & 0 deletions spec/requests/publications_spec.rb
Expand Up @@ -24,6 +24,7 @@
let(:publication) { Publication.find_by_name(name) }
before do
post "http://whatever.publishist.dev/publications", "publication_name" => name, "editor_email" => email
Person.any_instance.stub(:orchestrates?).and_return(false)
end
it "creates a publication, an editor, sample data, and signs the editor in" do
expect(Publication.count).to eq 1
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Expand Up @@ -21,6 +21,7 @@ def sign_in(as: '')
ApplicationController.any_instance.stub(:authenticate_person!).and_return(true)
ApplicationController.any_instance.stub(:person_signed_in?).and_return(true)
ApplicationController.any_instance.stub(:current_person).and_return(@person)
@person.stub(:orchestrates?).and_return(false)
if as.to_sym == :editor
ApplicationController.any_instance.stub(:must_orchestrate).and_return(true)
ApplicationController.any_instance.stub(:must_view).and_return(true)
Expand Down

0 comments on commit 1454237

Please sign in to comment.