Add tag to rspec specs that generate jasmine fixtures
This commit is contained in:
parent
535954dcc2
commit
a67b32d047
3 changed files with 11 additions and 11 deletions
|
|
@ -48,24 +48,24 @@ describe AspectsController do
|
|||
end
|
||||
|
||||
describe "#index" do
|
||||
it "generates a jasmine fixture" do
|
||||
it "generates a jasmine fixture", :fixture => 'jasmine' do
|
||||
get :index
|
||||
save_fixture(html_for("body"), "aspects_index")
|
||||
end
|
||||
|
||||
it "generates a jasmine fixture with a prefill" do
|
||||
it "generates a jasmine fixture with a prefill", :fixture => 'jasmine' do
|
||||
get :index, :prefill => "reshare things"
|
||||
save_fixture(html_for("body"), "aspects_index_prefill")
|
||||
end
|
||||
|
||||
it 'generates a jasmine fixture with services' do
|
||||
it 'generates a jasmine fixture with services', :fixture => 'jasmine' do
|
||||
@alice.services << Services::Facebook.create(:user_id => @alice.id)
|
||||
@alice.services << Services::Twitter.create(:user_id => @alice.id)
|
||||
get :index, :prefill => "reshare things"
|
||||
save_fixture(html_for("body"), "aspects_index_services")
|
||||
end
|
||||
|
||||
it 'generates a jasmine fixture with posts' do
|
||||
it 'generates a jasmine fixture with posts', :fixture => 'jasmine' do
|
||||
@alice.post(:status_message, :text => "hello", :to => @alices_aspect_2.id)
|
||||
get :index
|
||||
save_fixture(html_for("body"), "aspects_index_with_posts")
|
||||
|
|
@ -302,7 +302,7 @@ describe AspectsController do
|
|||
assigns(:remote_requests).count.should == 1
|
||||
end
|
||||
|
||||
it "generates a jasmine fixture" do
|
||||
it "generates a jasmine fixture", :fixture => 'jasmine' do
|
||||
get :manage
|
||||
save_fixture(html_for("body"), "aspects_manage")
|
||||
end
|
||||
|
|
@ -380,4 +380,4 @@ describe AspectsController do
|
|||
@alices_aspect_1.reload.contacts_visible.should be_false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ describe PublicsController do
|
|||
end
|
||||
|
||||
describe '#host_meta' do
|
||||
it 'succeeds' do
|
||||
it 'succeeds', :fixture => :rspec do
|
||||
get :host_meta
|
||||
response.should be_success
|
||||
response.body.should =~ /webfinger/
|
||||
|
|
@ -62,7 +62,7 @@ describe PublicsController do
|
|||
end
|
||||
|
||||
describe '#hcard' do
|
||||
it "succeeds" do
|
||||
it "succeeds", :fixture => :rspec do
|
||||
post :hcard, "guid" => @user.person.guid.to_s
|
||||
response.should be_success
|
||||
save_fixture(response.body, "hcard", fixture_path)
|
||||
|
|
@ -81,7 +81,7 @@ describe PublicsController do
|
|||
end
|
||||
|
||||
describe '#webfinger' do
|
||||
it "succeeds when the person and user exist locally" do
|
||||
it "succeeds when the person and user exist locally", :fixture => :rspec do
|
||||
post :webfinger, 'q' => @user.person.diaspora_handle
|
||||
response.should be_success
|
||||
save_fixture(response.body, "webfinger", fixture_path)
|
||||
|
|
@ -111,4 +111,4 @@ describe PublicsController do
|
|||
response.should be_success
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ describe StatusMessagesController do
|
|||
response.should be_success
|
||||
end
|
||||
|
||||
it 'generates a jasmine fixture' do
|
||||
it 'generates a jasmine fixture', :fixture => 'jasmine' do
|
||||
contact = alice.contact_for(bob.person)
|
||||
aspect = alice.aspects.create(:name => 'people')
|
||||
contact.aspects << aspect
|
||||
|
|
|
|||
Loading…
Reference in a new issue