Skip to content
Snippets Groups Projects
Commit 9b21777f authored by Giovanne Marcelo's avatar Giovanne Marcelo
Browse files

add public activities test

parent 80b891c6
No related branches found
No related tags found
No related merge requests found
require 'acceptance_helpers'
require 'shared/contexts'
resource 'Activities' do
before { 12.times { create(:learning_object) } }
let(:learning_objects) { LearningObject.all }
get '/v1/activities' do
include_context "authenticate_user"
before do
create(:like, user: @user)
end
example 'Showing all users public activities' do
do_request
expect(status).to eq(200)
end
end
end
require 'devise' require 'devise'
require 'public_activity/testing' require 'public_activity/testing'
PublicActivity.enabled = false PublicActivity.enabled = true
# This file was generated by the `rails generate rspec:install` command. Conventionally, all # This file was generated by the `rails generate rspec:install` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause # The generated `.rspec` file contains `--require spec_helper` which will cause
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment