lti_public_resources 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +5 -11
  3. data/app/assets/images/lti_public_resources/public_resources_banner.png +0 -0
  4. data/app/assets/images/lti_public_resources/public_resources_logo.png +0 -0
  5. data/app/controllers/lti_public_resources/api_controller.rb +13 -10
  6. data/app/controllers/lti_public_resources/test_controller.rb +10 -0
  7. data/app/views/lti_public_resources/test/backdoor.html.erb +4 -0
  8. data/config/routes.rb +3 -2
  9. data/lib/lti_public_resources/engine.rb +6 -0
  10. data/lib/lti_public_resources/version.rb +1 -1
  11. data/spec/controllers/lti_public_resources/api_controller_spec.rb +83 -0
  12. data/spec/controllers/lti_public_resources/ember_controller_spec.rb +6 -0
  13. data/spec/features/lti_public_resources/workflow_spec.rb +9 -0
  14. data/spec/spec_helper.rb +47 -0
  15. data/{test/dummy → spec/test_app}/README.rdoc +0 -0
  16. data/{test/dummy → spec/test_app}/Rakefile +0 -0
  17. data/{test/dummy → spec/test_app}/app/assets/javascripts/application.js +0 -0
  18. data/{test/dummy → spec/test_app}/app/assets/stylesheets/application.css +0 -0
  19. data/{test/dummy → spec/test_app}/app/controllers/application_controller.rb +0 -0
  20. data/{test/dummy → spec/test_app}/app/helpers/application_helper.rb +0 -0
  21. data/{test/dummy → spec/test_app}/app/views/layouts/application.html.erb +0 -0
  22. data/{test/dummy → spec/test_app}/bin/bundle +0 -0
  23. data/{test/dummy → spec/test_app}/bin/rails +0 -0
  24. data/{test/dummy → spec/test_app}/bin/rake +0 -0
  25. data/{test/dummy → spec/test_app}/config/application.rb +0 -0
  26. data/{test/dummy → spec/test_app}/config/boot.rb +0 -0
  27. data/{test/dummy → spec/test_app}/config/database.yml +0 -0
  28. data/{test/dummy → spec/test_app}/config/environment.rb +0 -0
  29. data/{test/dummy → spec/test_app}/config/environments/development.rb +0 -0
  30. data/{test/dummy → spec/test_app}/config/environments/production.rb +0 -0
  31. data/{test/dummy → spec/test_app}/config/environments/test.rb +0 -0
  32. data/{test/dummy → spec/test_app}/config/initializers/backtrace_silencers.rb +0 -0
  33. data/{test/dummy → spec/test_app}/config/initializers/filter_parameter_logging.rb +0 -0
  34. data/{test/dummy → spec/test_app}/config/initializers/inflections.rb +0 -0
  35. data/{test/dummy → spec/test_app}/config/initializers/mime_types.rb +0 -0
  36. data/{test/dummy → spec/test_app}/config/initializers/secret_token.rb +0 -0
  37. data/{test/dummy → spec/test_app}/config/initializers/session_store.rb +0 -0
  38. data/{test/dummy → spec/test_app}/config/initializers/wrap_parameters.rb +0 -0
  39. data/{test/dummy → spec/test_app}/config/locales/en.yml +0 -0
  40. data/spec/test_app/config/lti_public_resources_config.yml +7 -0
  41. data/spec/test_app/config/routes.rb +4 -0
  42. data/{test/dummy → spec/test_app}/config.ru +0 -0
  43. data/spec/test_app/db/schema.rb +16 -0
  44. data/{test/dummy/public/favicon.ico → spec/test_app/db/test.sqlite3} +0 -0
  45. data/spec/test_app/log/test.log +53 -0
  46. data/{test/dummy → spec/test_app}/public/404.html +0 -0
  47. data/{test/dummy → spec/test_app}/public/422.html +0 -0
  48. data/{test/dummy → spec/test_app}/public/500.html +0 -0
  49. data/spec/test_app/public/favicon.ico +0 -0
  50. data/spec/test_app/tmp/cache/assets/test/sprockets/02258d65e761675feb45fff74a117329 +0 -0
  51. data/spec/test_app/tmp/cache/assets/test/sprockets/056a853a384ade3a915333a6654b71db +0 -0
  52. data/spec/test_app/tmp/cache/assets/test/sprockets/0701cc5184e6fb4e4c7aabf2e2be67b4 +0 -0
  53. data/spec/test_app/tmp/cache/assets/test/sprockets/0c8074af703365b5f31176665cfe9dbe +0 -0
  54. data/spec/test_app/tmp/cache/assets/test/sprockets/0d18ed93fbb280d6544a10355c04ec90 +0 -0
  55. data/spec/test_app/tmp/cache/assets/test/sprockets/2070d49cfaabf9bd40997af6aeee74f4 +0 -0
  56. data/spec/test_app/tmp/cache/assets/test/sprockets/282bb568d8eb8709b6cf770dde794b9b +0 -0
  57. data/spec/test_app/tmp/cache/assets/test/sprockets/31c59729c823e0500a22598eeac16c2c +0 -0
  58. data/spec/test_app/tmp/cache/assets/test/sprockets/3475a5d4af07e8438bb3206b4fd665f1 +0 -0
  59. data/spec/test_app/tmp/cache/assets/test/sprockets/397b382ddc77fcc59eada17b87ca3844 +0 -0
  60. data/spec/test_app/tmp/cache/assets/test/sprockets/40a189a5701341989411168b2f04b001 +0 -0
  61. data/spec/test_app/tmp/cache/assets/test/sprockets/43165bf4ba33f491d828b3c3e1306555 +0 -0
  62. data/spec/test_app/tmp/cache/assets/test/sprockets/4c84557bdf227c54e12daab6467e60a0 +0 -0
  63. data/spec/test_app/tmp/cache/assets/test/sprockets/594d8e1916ab24a8257587125baba5f3 +0 -0
  64. data/spec/test_app/tmp/cache/assets/test/sprockets/59ea1f9969a93db0940a0ba7f748057d +0 -0
  65. data/spec/test_app/tmp/cache/assets/test/sprockets/5cd771c7ecb7f92df29b1cf31ace30e5 +0 -0
  66. data/spec/test_app/tmp/cache/assets/test/sprockets/5d7b3b4903883854e98068b6a4c542e6 +0 -0
  67. data/spec/test_app/tmp/cache/assets/test/sprockets/638cf376566bc26bb673af298ebd4da2 +0 -0
  68. data/spec/test_app/tmp/cache/assets/test/sprockets/6816777ac981ca34843b7b4d3694d724 +0 -0
  69. data/spec/test_app/tmp/cache/assets/test/sprockets/70c38cc5f49a87b9fb3454edad1afd36 +0 -0
  70. data/spec/test_app/tmp/cache/assets/test/sprockets/79e4c02adfa3be301ce7bb604d502cee +0 -0
  71. data/spec/test_app/tmp/cache/assets/test/sprockets/7a490c251567a163afe01c47a630ff0f +0 -0
  72. data/spec/test_app/tmp/cache/assets/test/sprockets/8c93462ae47b4011514b7a1226047036 +0 -0
  73. data/spec/test_app/tmp/cache/assets/test/sprockets/98e3a1effd8bbf96f9c49a5daf5c9617 +0 -0
  74. data/spec/test_app/tmp/cache/assets/test/sprockets/9f1f3e4f626447e69612f2ed2234491d +0 -0
  75. data/spec/test_app/tmp/cache/assets/test/sprockets/b65e5f3b0fb722f8d622be61dbefa144 +0 -0
  76. data/spec/test_app/tmp/cache/assets/test/sprockets/cd18b6e8c11b141140d011ffa802c0b1 +0 -0
  77. data/spec/test_app/tmp/cache/assets/test/sprockets/cff6c0afd89e57165d4916370d76607b +0 -0
  78. data/spec/test_app/tmp/cache/assets/test/sprockets/d7d5b1e1d007f69e2341da3053d98bd8 +0 -0
  79. data/spec/test_app/tmp/cache/assets/test/sprockets/f15cc4598c1fe6c00dce0ad5f5e999a8 +0 -0
  80. data/spec/test_app/tmp/cache/assets/test/sprockets/f61b1eedcab6d9c68c66d10afdd120d5 +0 -0
  81. data/spec/test_app/tmp/cache/assets/test/sprockets/ffd034e84822331c80a8c0007c62985c +0 -0
  82. metadata +191 -78
  83. data/test/controllers/lti_public_resources/api_controller_test.rb +0 -9
  84. data/test/controllers/lti_public_resources/ember_controller_test.rb +0 -9
  85. data/test/dummy/config/routes.rb +0 -4
  86. data/test/helpers/lti_public_resources/api_helper_test.rb +0 -6
  87. data/test/helpers/lti_public_resources/ember_helper_test.rb +0 -6
  88. data/test/integration/navigation_test.rb +0 -10
  89. data/test/lti_public_resources_test.rb +0 -7
  90. data/test/test_helper.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95314c078548556ce435d0ed30b434942d8d6b4c
4
- data.tar.gz: 9df9bc75fe3ec3a76876ddc5700b3c67a6e607b2
3
+ metadata.gz: 234dcddf2f55c7284b6588bef4a1c7dadaee3e80
4
+ data.tar.gz: 8db0a2791b8ea5e3c9b0fa90a22e961e0b8639a6
5
5
  SHA512:
6
- metadata.gz: 99934ace0a71bfa028de77e6b0def3d559e0f1a94cc46380d77de6f7491b663a4171654135b47ba4abf02063fb14e5807c3fdd8564e9e39716f8c5ae3bc13ce0
7
- data.tar.gz: b7e8d0ae101f60ab78fa758360dd3fbe6ecf43de8053055f1012ae7c02cdb797510fcf8be2e70206b11720ee853659f7b8b46007f590e676a287f96ffb6f72ce
6
+ metadata.gz: 6553f0ded6f4671409eec241a5164a125ad64f3a25367b7ee4a29706bcfbb2aa0fffc4d2c85283fe1f2e4676b1c73b3d5e10615f0d0b074602dc7a8895fbd250
7
+ data.tar.gz: 6c0d51880f821e4a5edff279f64eeed7947e73a315b33f993e5ee1b98e82d60525e2e95e43a88c9c4eba7bd1ce4e18046445df9e545e49b43e61ebaeb1781398
data/Rakefile CHANGED
@@ -14,21 +14,15 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
17
+ APP_RAKEFILE = File.expand_path("../spec/test_app/Rakefile", __FILE__)
18
18
  load 'rails/tasks/engine.rake'
19
19
 
20
-
21
-
22
20
  Bundler::GemHelper.install_tasks
23
21
 
24
- require 'rake/testtask'
22
+ Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }
25
23
 
26
- Rake::TestTask.new(:test) do |t|
27
- t.libs << 'lib'
28
- t.libs << 'test'
29
- t.pattern = 'test/**/*_test.rb'
30
- t.verbose = false
31
- end
24
+ require 'rspec/core/rake_task'
32
25
 
26
+ RSpec::Core::RakeTask.new(:spec)
33
27
 
34
- task default: :test
28
+ task :default => :spec
@@ -60,23 +60,25 @@ module LtiPublicResources
60
60
  render json: ret
61
61
  end
62
62
 
63
- def config
64
- host = request.scheme + "://" + request.host_with_port + request.env['SCRIPT_NAME']
63
+ def xml_config
64
+ script_name = request.env['SCRIPT_NAME']
65
+ host = request.scheme + "://" + request.host_with_port
66
+ tool_id = 'public_resources'
65
67
 
66
68
  if params[:id]
67
69
  tool_id = params[:id]
68
70
  lti_app = @apps[tool_id.to_sym]
69
71
  name = lti_app[:name]
70
72
  description = lti_app[:description]
71
- icon = "#{host}/assets/images/#{lti_app[:icon_path]}"
73
+ icon = "#{host}/assets#{script_name}/#{lti_app[:icon_path]}"
72
74
  text = lti_app[:name]
73
- url = host + "/?tool_id=" + tool_id
75
+ url = "#{host}#{script_name}/?tool_id=#{tool_id}"
74
76
  else
75
77
  name = "Public Resources"
76
78
  description = "Collection of public resources"
77
- icon = "#{host}/assets/images/public_resources_icon.png"
79
+ icon = "#{host}/assets#{script_name}/public_resources_icon.png"
78
80
  text = "Public Resources"
79
- url = host
81
+ url = "#{host}#{script_name}"
80
82
  end
81
83
 
82
84
  tc = IMS::LTI::ToolConfig.new(:title => name, :launch_url => url)
@@ -87,12 +89,13 @@ module LtiPublicResources
87
89
  tc.canvas_text! text
88
90
  tc.canvas_icon_url! icon
89
91
  tc.canvas_selector_dimensions! 560, 600
90
- tc.canvas_editor_button!
91
- tc.canvas_resource_selection!
92
+ tc.canvas_editor_button!(enabled: true)
93
+ tc.canvas_resource_selection!(enabled: true)
94
+ tc.set_ext_param('canvas.instructure.com', :tool_id, tool_id)
92
95
 
93
96
  render xml: tc.to_xml(:indent => 2)
94
97
  end
95
-
98
+
96
99
  private
97
100
 
98
101
  def load_apps
@@ -104,7 +107,7 @@ module LtiPublicResources
104
107
  tp.extend IMS::LTI::Extensions::Content::ToolProvider
105
108
  tp
106
109
  end
107
-
110
+
108
111
  def build_url(tp, return_type)
109
112
  if tp.accepts_content?
110
113
  case return_type['return_type']
@@ -0,0 +1,10 @@
1
+ require_dependency "lti_public_resources/application_controller"
2
+
3
+ module LtiPublicResources
4
+ class TestController < ApplicationController
5
+
6
+ def backdoor
7
+ end
8
+
9
+ end
10
+ end
@@ -0,0 +1,4 @@
1
+ <p>Form to access root page via POST. Used for tests.</p>
2
+ <%= form_tag root_path do %>
3
+ <button type="submit" id="submit">Submit</button>
4
+ <% end %>
data/config/routes.rb CHANGED
@@ -1,11 +1,12 @@
1
1
  LtiPublicResources::Engine.routes.draw do
2
2
  root "ember#app"
3
-
3
+ match "/" => "ember#app", via: [:get, :post]
4
4
  get 'health_check' => 'ember#health_check'
5
5
  get 'api/lti_apps' => 'api#lti_apps'
6
6
  get 'api/lti_apps/:id' => 'api#lti_app'
7
7
  post 'api/search' => 'api#search'
8
8
  post 'api/browse' => 'api#browse'
9
9
  post 'api/embed' => 'api#embed'
10
- get 'config.xml' => 'api#config'
10
+ get 'config(.xml)' => 'api#xml_config'
11
+ get 'test/backdoor' => 'test#backdoor'
11
12
  end
@@ -11,5 +11,11 @@ module LtiPublicResources
11
11
  initializer "lti_public_resources.lti_public_resources_config" do |app|
12
12
  LtiPublicResources::LtiPublicResourcesConfig.setup!
13
13
  end
14
+
15
+ config.generators do |g|
16
+ g.test_framework :rspec
17
+ g.assets false
18
+ g.helper false
19
+ end
14
20
  end
15
21
  end
@@ -1,3 +1,3 @@
1
1
  module LtiPublicResources
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,83 @@
1
+ require 'spec_helper'
2
+
3
+ module LtiPublicResources
4
+ describe ApiController do
5
+
6
+ describe "GET config" do
7
+ before :each do
8
+ request.stub(:env).and_return({
9
+ "SCRIPT_NAME" => "/lti_public_resources",
10
+ "rack.url_scheme" => "http",
11
+ "HTTP_HOST" => "test.host",
12
+ "PATH_INFO" => "/lti_public_resources"
13
+ })
14
+ end
15
+
16
+ it "public_resources" do
17
+ get :xml_config, use_route: :lti_public_resources
18
+ expect(response.body).to include('<blti:title>Public Resources</blti:title>')
19
+ expect(response.body).to include('<blti:description>Collection of public resources</blti:description>')
20
+ expect(response.body).to include('<lticm:options name="editor_button">')
21
+ expect(response.body).to include('<lticm:options name="resource_selection">')
22
+ expect(response.body).to include('<lticm:property name="text">Public Resources</lticm:property>')
23
+ expect(response.body).to include('<lticm:property name="tool_id">public_resources</lticm:property>')
24
+ expect(response.body).to include("<lticm:property name=\"icon_url\">http://test.host/assets/lti_public_resources/public_resources_icon.png</lticm:property>")
25
+ end
26
+
27
+ it "khan_academy" do
28
+ get :xml_config, id: "khan_academy", use_route: :lti_public_resources
29
+ expect(response.body).to include('<lticm:property name="text">Khan Academy</lticm:property>')
30
+ expect(response.body).to include('<lticm:property name="tool_id">khan_academy</lticm:property>')
31
+ expect(response.body).to include("<lticm:property name=\"icon_url\">http://test.host/assets/lti_public_resources/khan_academy_icon.png</lticm:property>")
32
+ end
33
+
34
+ it "quizlet" do
35
+ get :xml_config, id: "quizlet", use_route: :lti_public_resources
36
+ expect(response.body).to include('<lticm:property name="text">Quizlet</lticm:property>')
37
+ expect(response.body).to include('<lticm:property name="tool_id">quizlet</lticm:property>')
38
+ expect(response.body).to include("<lticm:property name=\"icon_url\">http://test.host/assets/lti_public_resources/quizlet_icon.png</lticm:property>")
39
+ end
40
+
41
+ it "youtube" do
42
+ get :xml_config, id: "youtube", use_route: :lti_public_resources
43
+ expect(response.body).to include('<lticm:property name="text">YouTube</lticm:property>')
44
+ expect(response.body).to include('<lticm:property name="tool_id">youtube</lticm:property>')
45
+ expect(response.body).to include('<lticm:property name="icon_url">http://test.host/assets/lti_public_resources/youtube_icon.png</lticm:property>')
46
+ end
47
+
48
+ it "schooltube" do
49
+ get :xml_config, id: "schooltube", use_route: :lti_public_resources
50
+ expect(response.body).to include('<lticm:property name="text">SchoolTube</lticm:property>')
51
+ expect(response.body).to include('<lticm:property name="tool_id">schooltube</lticm:property>')
52
+ expect(response.body).to include('<lticm:property name="icon_url">http://test.host/assets/lti_public_resources/schooltube_icon.png</lticm:property>')
53
+ end
54
+
55
+ it "vimeo" do
56
+ get :xml_config, id: "vimeo", use_route: :lti_public_resources
57
+ expect(response.body).to include('<lticm:property name="text">Vimeo</lticm:property>')
58
+ expect(response.body).to include('<lticm:property name="tool_id">vimeo</lticm:property>')
59
+ expect(response.body).to include('<lticm:property name="icon_url">http://test.host/assets/lti_public_resources/vimeo_icon.png</lticm:property>')
60
+ end
61
+ end
62
+
63
+ describe "GET lti_apps" do
64
+ it "returns apps" do
65
+ get :lti_apps, use_route: :lti_public_resources
66
+ json = JSON.parse(response.body)
67
+ expect(json['lti_apps'].length).to eq(5)
68
+ end
69
+ end
70
+
71
+ describe "GET lti_app", pending: true do
72
+ end
73
+
74
+ describe "GET search", pending: true do
75
+ end
76
+
77
+ describe "GET browse", pending: true do
78
+ end
79
+
80
+ describe "GET embed", pending: true do
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,6 @@
1
+ require 'spec_helper'
2
+
3
+ module LtiPublicResources
4
+ describe EmberController do
5
+ end
6
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Workflow', type: :request, js: true do
4
+ it 'app should be accessible via POST' do
5
+ visit '/lti_public_resources/test/backdoor'
6
+ click_button('Submit')
7
+ page.should have_css('li.media')
8
+ end
9
+ end
@@ -0,0 +1,47 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require File.expand_path("../test_app/config/environment", __FILE__)
4
+ require 'rspec/rails'
5
+ require 'rspec/autorun'
6
+ require 'capybara/rspec'
7
+ require 'capybara/rails'
8
+ require 'capybara/poltergeist'
9
+
10
+ Capybara.javascript_driver = :poltergeist
11
+
12
+ # Requires supporting ruby files with custom matchers and macros, etc,
13
+ # in spec/support/ and its subdirectories.
14
+ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
15
+
16
+ # Checks for pending migrations before tests are run.
17
+ # If you are not using ActiveRecord, you can remove this line.
18
+ ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
19
+
20
+ RSpec.configure do |config|
21
+ # ## Mock Framework
22
+ #
23
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
24
+ #
25
+ # config.mock_with :mocha
26
+ # config.mock_with :flexmock
27
+ # config.mock_with :rr
28
+
29
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
30
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
31
+
32
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
33
+ # examples within a transaction, remove the following line or assign false
34
+ # instead of true.
35
+ config.use_transactional_fixtures = true
36
+
37
+ # If true, the base class of anonymous controllers will be inferred
38
+ # automatically. This will be the default behavior in future versions of
39
+ # rspec-rails.
40
+ config.infer_base_class_for_anonymous_controllers = false
41
+
42
+ # Run specs in random order to surface order dependencies. If you find an
43
+ # order dependency and want to debug it, you can fix the order by providing
44
+ # the seed, which is printed after each run.
45
+ # --seed 1234
46
+ config.order = "random"
47
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ vimeo:
2
+ consumer_key: VIMEO_CONSUMER_KEY
3
+ consumer_secret: VIMEO_CONSUMER_SECRET
4
+ access_token: VIMEO_ACCESS_TOKEN
5
+ access_token_secret: VIMEO_ACCESS_TOKEN_SECRET
6
+ quizlet:
7
+ client_id: QUIZLET_CLIENT_ID
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ get "ember/index"
3
+ mount LtiPublicResources::Engine => "/lti_public_resources"
4
+ end
File without changes
@@ -0,0 +1,16 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 0) do
15
+
16
+ end
@@ -0,0 +1,53 @@
1
+ Initializing using /Users/eberry/Projects/Instructure/lti_public_resources/spec/test_app/config/lti_public_resources_config.yml
2
+  (0.1ms) begin transaction
3
+ Processing by LtiPublicResources::ApiController#xml_config as HTML
4
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
5
+  (0.1ms) rollback transaction
6
+  (0.0ms) begin transaction
7
+ Processing by LtiPublicResources::ApiController#xml_config as HTML
8
+ Parameters: {"id"=>"quizlet"}
9
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
10
+  (0.1ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+ Processing by LtiPublicResources::ApiController#xml_config as HTML
13
+ Parameters: {"id"=>"youtube"}
14
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
15
+  (0.1ms) rollback transaction
16
+  (0.0ms) begin transaction
17
+ Processing by LtiPublicResources::ApiController#xml_config as HTML
18
+ Parameters: {"id"=>"vimeo"}
19
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
20
+  (0.1ms) rollback transaction
21
+  (0.0ms) begin transaction
22
+ Processing by LtiPublicResources::ApiController#xml_config as HTML
23
+ Parameters: {"id"=>"schooltube"}
24
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
25
+  (0.1ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ Processing by LtiPublicResources::ApiController#xml_config as HTML
28
+ Parameters: {"id"=>"khan_academy"}
29
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
30
+  (0.1ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+ Processing by LtiPublicResources::ApiController#lti_apps as HTML
33
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
34
+  (0.1ms) rollback transaction
35
+  (0.1ms) begin transaction
36
+ Started GET "/lti_public_resources/test/backdoor" for 127.0.0.1 at 2014-02-07 12:18:30 -0700
37
+ Processing by LtiPublicResources::TestController#backdoor as HTML
38
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
39
+ Started POST "/lti_public_resources/" for 127.0.0.1 at 2014-02-07 12:18:30 -0700
40
+ Processing by LtiPublicResources::EmberController#app as HTML
41
+ Parameters: {"utf8"=>"✓"}
42
+ Completed 200 OK in 86ms (Views: 85.6ms | ActiveRecord: 0.0ms)
43
+ Started GET "/assets/lti_public_resources/application.css" for 127.0.0.1 at 2014-02-07 12:18:30 -0700
44
+ Started GET "/assets/lti_public_resources/application.js" for 127.0.0.1 at 2014-02-07 12:18:30 -0700
45
+ Started GET "/lti_public_resources/api/lti_apps" for 127.0.0.1 at 2014-02-07 12:18:31 -0700
46
+ Processing by LtiPublicResources::ApiController#lti_apps as */*
47
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
48
+ Started GET "/assets/lti_public_resources/vimeo_banner.png" for 127.0.0.1 at 2014-02-07 12:18:31 -0700
49
+ Started GET "/assets/lti_public_resources/youtube_banner.png" for 127.0.0.1 at 2014-02-07 12:18:31 -0700
50
+ Started GET "/assets/lti_public_resources/khan_academy_banner.png" for 127.0.0.1 at 2014-02-07 12:18:31 -0700
51
+ Started GET "/assets/lti_public_resources/schooltube_banner.png" for 127.0.0.1 at 2014-02-07 12:18:31 -0700
52
+ Started GET "/assets/lti_public_resources/quizlet_banner.png" for 127.0.0.1 at 2014-02-07 12:18:31 -0700
53
+  (0.1ms) rollback transaction
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lti_public_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Berry
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-21 00:00:00.000000000 Z
12
+ date: 2014-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -67,6 +67,48 @@ dependencies:
67
67
  - - '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec-rails
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: capybara
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: poltergeist
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
70
112
  description: Public Resources LTI app
71
113
  email:
72
114
  - cavneb@gmail.com
@@ -80,7 +122,9 @@ files:
80
122
  - app/assets/images/lti_public_resources/khan_academy_banner.png
81
123
  - app/assets/images/lti_public_resources/khan_academy_icon.png
82
124
  - app/assets/images/lti_public_resources/khan_academy_logo.png
125
+ - app/assets/images/lti_public_resources/public_resources_banner.png
83
126
  - app/assets/images/lti_public_resources/public_resources_icon.png
127
+ - app/assets/images/lti_public_resources/public_resources_logo.png
84
128
  - app/assets/images/lti_public_resources/quizlet_banner.png
85
129
  - app/assets/images/lti_public_resources/quizlet_icon.png
86
130
  - app/assets/images/lti_public_resources/quizlet_logo.png
@@ -101,7 +145,9 @@ files:
101
145
  - app/controllers/lti_public_resources/api_controller.rb
102
146
  - app/controllers/lti_public_resources/application_controller.rb
103
147
  - app/controllers/lti_public_resources/ember_controller.rb
148
+ - app/controllers/lti_public_resources/test_controller.rb
104
149
  - app/views/lti_public_resources/ember/app.html.erb
150
+ - app/views/lti_public_resources/test/backdoor.html.erb
105
151
  - config/lti_public_resources_config.yml.example
106
152
  - config/routes.rb
107
153
  - lib/lti_public_resources.rb
@@ -110,44 +156,77 @@ files:
110
156
  - lib/lti_public_resources/version.rb
111
157
  - lib/tasks/ember.rake
112
158
  - lib/tasks/lti_public_resources_tasks.rake
113
- - test/controllers/lti_public_resources/api_controller_test.rb
114
- - test/controllers/lti_public_resources/ember_controller_test.rb
115
- - test/dummy/README.rdoc
116
- - test/dummy/Rakefile
117
- - test/dummy/app/assets/javascripts/application.js
118
- - test/dummy/app/assets/stylesheets/application.css
119
- - test/dummy/app/controllers/application_controller.rb
120
- - test/dummy/app/helpers/application_helper.rb
121
- - test/dummy/app/views/layouts/application.html.erb
122
- - test/dummy/bin/bundle
123
- - test/dummy/bin/rails
124
- - test/dummy/bin/rake
125
- - test/dummy/config.ru
126
- - test/dummy/config/application.rb
127
- - test/dummy/config/boot.rb
128
- - test/dummy/config/database.yml
129
- - test/dummy/config/environment.rb
130
- - test/dummy/config/environments/development.rb
131
- - test/dummy/config/environments/production.rb
132
- - test/dummy/config/environments/test.rb
133
- - test/dummy/config/initializers/backtrace_silencers.rb
134
- - test/dummy/config/initializers/filter_parameter_logging.rb
135
- - test/dummy/config/initializers/inflections.rb
136
- - test/dummy/config/initializers/mime_types.rb
137
- - test/dummy/config/initializers/secret_token.rb
138
- - test/dummy/config/initializers/session_store.rb
139
- - test/dummy/config/initializers/wrap_parameters.rb
140
- - test/dummy/config/locales/en.yml
141
- - test/dummy/config/routes.rb
142
- - test/dummy/public/404.html
143
- - test/dummy/public/422.html
144
- - test/dummy/public/500.html
145
- - test/dummy/public/favicon.ico
146
- - test/helpers/lti_public_resources/api_helper_test.rb
147
- - test/helpers/lti_public_resources/ember_helper_test.rb
148
- - test/integration/navigation_test.rb
149
- - test/lti_public_resources_test.rb
150
- - test/test_helper.rb
159
+ - spec/controllers/lti_public_resources/api_controller_spec.rb
160
+ - spec/controllers/lti_public_resources/ember_controller_spec.rb
161
+ - spec/features/lti_public_resources/workflow_spec.rb
162
+ - spec/spec_helper.rb
163
+ - spec/test_app/README.rdoc
164
+ - spec/test_app/Rakefile
165
+ - spec/test_app/app/assets/javascripts/application.js
166
+ - spec/test_app/app/assets/stylesheets/application.css
167
+ - spec/test_app/app/controllers/application_controller.rb
168
+ - spec/test_app/app/helpers/application_helper.rb
169
+ - spec/test_app/app/views/layouts/application.html.erb
170
+ - spec/test_app/bin/bundle
171
+ - spec/test_app/bin/rails
172
+ - spec/test_app/bin/rake
173
+ - spec/test_app/config.ru
174
+ - spec/test_app/config/application.rb
175
+ - spec/test_app/config/boot.rb
176
+ - spec/test_app/config/database.yml
177
+ - spec/test_app/config/environment.rb
178
+ - spec/test_app/config/environments/development.rb
179
+ - spec/test_app/config/environments/production.rb
180
+ - spec/test_app/config/environments/test.rb
181
+ - spec/test_app/config/initializers/backtrace_silencers.rb
182
+ - spec/test_app/config/initializers/filter_parameter_logging.rb
183
+ - spec/test_app/config/initializers/inflections.rb
184
+ - spec/test_app/config/initializers/mime_types.rb
185
+ - spec/test_app/config/initializers/secret_token.rb
186
+ - spec/test_app/config/initializers/session_store.rb
187
+ - spec/test_app/config/initializers/wrap_parameters.rb
188
+ - spec/test_app/config/locales/en.yml
189
+ - spec/test_app/config/lti_public_resources_config.yml
190
+ - spec/test_app/config/routes.rb
191
+ - spec/test_app/db/schema.rb
192
+ - spec/test_app/db/test.sqlite3
193
+ - spec/test_app/log/test.log
194
+ - spec/test_app/public/404.html
195
+ - spec/test_app/public/422.html
196
+ - spec/test_app/public/500.html
197
+ - spec/test_app/public/favicon.ico
198
+ - spec/test_app/tmp/cache/assets/test/sprockets/02258d65e761675feb45fff74a117329
199
+ - spec/test_app/tmp/cache/assets/test/sprockets/056a853a384ade3a915333a6654b71db
200
+ - spec/test_app/tmp/cache/assets/test/sprockets/0701cc5184e6fb4e4c7aabf2e2be67b4
201
+ - spec/test_app/tmp/cache/assets/test/sprockets/0c8074af703365b5f31176665cfe9dbe
202
+ - spec/test_app/tmp/cache/assets/test/sprockets/0d18ed93fbb280d6544a10355c04ec90
203
+ - spec/test_app/tmp/cache/assets/test/sprockets/2070d49cfaabf9bd40997af6aeee74f4
204
+ - spec/test_app/tmp/cache/assets/test/sprockets/282bb568d8eb8709b6cf770dde794b9b
205
+ - spec/test_app/tmp/cache/assets/test/sprockets/31c59729c823e0500a22598eeac16c2c
206
+ - spec/test_app/tmp/cache/assets/test/sprockets/3475a5d4af07e8438bb3206b4fd665f1
207
+ - spec/test_app/tmp/cache/assets/test/sprockets/397b382ddc77fcc59eada17b87ca3844
208
+ - spec/test_app/tmp/cache/assets/test/sprockets/40a189a5701341989411168b2f04b001
209
+ - spec/test_app/tmp/cache/assets/test/sprockets/43165bf4ba33f491d828b3c3e1306555
210
+ - spec/test_app/tmp/cache/assets/test/sprockets/4c84557bdf227c54e12daab6467e60a0
211
+ - spec/test_app/tmp/cache/assets/test/sprockets/594d8e1916ab24a8257587125baba5f3
212
+ - spec/test_app/tmp/cache/assets/test/sprockets/59ea1f9969a93db0940a0ba7f748057d
213
+ - spec/test_app/tmp/cache/assets/test/sprockets/5cd771c7ecb7f92df29b1cf31ace30e5
214
+ - spec/test_app/tmp/cache/assets/test/sprockets/5d7b3b4903883854e98068b6a4c542e6
215
+ - spec/test_app/tmp/cache/assets/test/sprockets/638cf376566bc26bb673af298ebd4da2
216
+ - spec/test_app/tmp/cache/assets/test/sprockets/6816777ac981ca34843b7b4d3694d724
217
+ - spec/test_app/tmp/cache/assets/test/sprockets/70c38cc5f49a87b9fb3454edad1afd36
218
+ - spec/test_app/tmp/cache/assets/test/sprockets/79e4c02adfa3be301ce7bb604d502cee
219
+ - spec/test_app/tmp/cache/assets/test/sprockets/7a490c251567a163afe01c47a630ff0f
220
+ - spec/test_app/tmp/cache/assets/test/sprockets/8c93462ae47b4011514b7a1226047036
221
+ - spec/test_app/tmp/cache/assets/test/sprockets/98e3a1effd8bbf96f9c49a5daf5c9617
222
+ - spec/test_app/tmp/cache/assets/test/sprockets/9f1f3e4f626447e69612f2ed2234491d
223
+ - spec/test_app/tmp/cache/assets/test/sprockets/b65e5f3b0fb722f8d622be61dbefa144
224
+ - spec/test_app/tmp/cache/assets/test/sprockets/cd18b6e8c11b141140d011ffa802c0b1
225
+ - spec/test_app/tmp/cache/assets/test/sprockets/cff6c0afd89e57165d4916370d76607b
226
+ - spec/test_app/tmp/cache/assets/test/sprockets/d7d5b1e1d007f69e2341da3053d98bd8
227
+ - spec/test_app/tmp/cache/assets/test/sprockets/f15cc4598c1fe6c00dce0ad5f5e999a8
228
+ - spec/test_app/tmp/cache/assets/test/sprockets/f61b1eedcab6d9c68c66d10afdd120d5
229
+ - spec/test_app/tmp/cache/assets/test/sprockets/ffd034e84822331c80a8c0007c62985c
151
230
  homepage: https://github.com/instructure/lti_public_resources
152
231
  licenses: []
153
232
  metadata: {}
@@ -172,41 +251,75 @@ signing_key:
172
251
  specification_version: 4
173
252
  summary: Public Resources LTI app
174
253
  test_files:
175
- - test/controllers/lti_public_resources/api_controller_test.rb
176
- - test/controllers/lti_public_resources/ember_controller_test.rb
177
- - test/dummy/app/assets/javascripts/application.js
178
- - test/dummy/app/assets/stylesheets/application.css
179
- - test/dummy/app/controllers/application_controller.rb
180
- - test/dummy/app/helpers/application_helper.rb
181
- - test/dummy/app/views/layouts/application.html.erb
182
- - test/dummy/bin/bundle
183
- - test/dummy/bin/rails
184
- - test/dummy/bin/rake
185
- - test/dummy/config/application.rb
186
- - test/dummy/config/boot.rb
187
- - test/dummy/config/database.yml
188
- - test/dummy/config/environment.rb
189
- - test/dummy/config/environments/development.rb
190
- - test/dummy/config/environments/production.rb
191
- - test/dummy/config/environments/test.rb
192
- - test/dummy/config/initializers/backtrace_silencers.rb
193
- - test/dummy/config/initializers/filter_parameter_logging.rb
194
- - test/dummy/config/initializers/inflections.rb
195
- - test/dummy/config/initializers/mime_types.rb
196
- - test/dummy/config/initializers/secret_token.rb
197
- - test/dummy/config/initializers/session_store.rb
198
- - test/dummy/config/initializers/wrap_parameters.rb
199
- - test/dummy/config/locales/en.yml
200
- - test/dummy/config/routes.rb
201
- - test/dummy/config.ru
202
- - test/dummy/public/404.html
203
- - test/dummy/public/422.html
204
- - test/dummy/public/500.html
205
- - test/dummy/public/favicon.ico
206
- - test/dummy/Rakefile
207
- - test/dummy/README.rdoc
208
- - test/helpers/lti_public_resources/api_helper_test.rb
209
- - test/helpers/lti_public_resources/ember_helper_test.rb
210
- - test/integration/navigation_test.rb
211
- - test/lti_public_resources_test.rb
212
- - test/test_helper.rb
254
+ - spec/controllers/lti_public_resources/api_controller_spec.rb
255
+ - spec/controllers/lti_public_resources/ember_controller_spec.rb
256
+ - spec/features/lti_public_resources/workflow_spec.rb
257
+ - spec/spec_helper.rb
258
+ - spec/test_app/app/assets/javascripts/application.js
259
+ - spec/test_app/app/assets/stylesheets/application.css
260
+ - spec/test_app/app/controllers/application_controller.rb
261
+ - spec/test_app/app/helpers/application_helper.rb
262
+ - spec/test_app/app/views/layouts/application.html.erb
263
+ - spec/test_app/bin/bundle
264
+ - spec/test_app/bin/rails
265
+ - spec/test_app/bin/rake
266
+ - spec/test_app/config/application.rb
267
+ - spec/test_app/config/boot.rb
268
+ - spec/test_app/config/database.yml
269
+ - spec/test_app/config/environment.rb
270
+ - spec/test_app/config/environments/development.rb
271
+ - spec/test_app/config/environments/production.rb
272
+ - spec/test_app/config/environments/test.rb
273
+ - spec/test_app/config/initializers/backtrace_silencers.rb
274
+ - spec/test_app/config/initializers/filter_parameter_logging.rb
275
+ - spec/test_app/config/initializers/inflections.rb
276
+ - spec/test_app/config/initializers/mime_types.rb
277
+ - spec/test_app/config/initializers/secret_token.rb
278
+ - spec/test_app/config/initializers/session_store.rb
279
+ - spec/test_app/config/initializers/wrap_parameters.rb
280
+ - spec/test_app/config/locales/en.yml
281
+ - spec/test_app/config/lti_public_resources_config.yml
282
+ - spec/test_app/config/routes.rb
283
+ - spec/test_app/config.ru
284
+ - spec/test_app/db/schema.rb
285
+ - spec/test_app/db/test.sqlite3
286
+ - spec/test_app/log/test.log
287
+ - spec/test_app/public/404.html
288
+ - spec/test_app/public/422.html
289
+ - spec/test_app/public/500.html
290
+ - spec/test_app/public/favicon.ico
291
+ - spec/test_app/Rakefile
292
+ - spec/test_app/README.rdoc
293
+ - spec/test_app/tmp/cache/assets/test/sprockets/02258d65e761675feb45fff74a117329
294
+ - spec/test_app/tmp/cache/assets/test/sprockets/056a853a384ade3a915333a6654b71db
295
+ - spec/test_app/tmp/cache/assets/test/sprockets/0701cc5184e6fb4e4c7aabf2e2be67b4
296
+ - spec/test_app/tmp/cache/assets/test/sprockets/0c8074af703365b5f31176665cfe9dbe
297
+ - spec/test_app/tmp/cache/assets/test/sprockets/0d18ed93fbb280d6544a10355c04ec90
298
+ - spec/test_app/tmp/cache/assets/test/sprockets/2070d49cfaabf9bd40997af6aeee74f4
299
+ - spec/test_app/tmp/cache/assets/test/sprockets/282bb568d8eb8709b6cf770dde794b9b
300
+ - spec/test_app/tmp/cache/assets/test/sprockets/31c59729c823e0500a22598eeac16c2c
301
+ - spec/test_app/tmp/cache/assets/test/sprockets/3475a5d4af07e8438bb3206b4fd665f1
302
+ - spec/test_app/tmp/cache/assets/test/sprockets/397b382ddc77fcc59eada17b87ca3844
303
+ - spec/test_app/tmp/cache/assets/test/sprockets/40a189a5701341989411168b2f04b001
304
+ - spec/test_app/tmp/cache/assets/test/sprockets/43165bf4ba33f491d828b3c3e1306555
305
+ - spec/test_app/tmp/cache/assets/test/sprockets/4c84557bdf227c54e12daab6467e60a0
306
+ - spec/test_app/tmp/cache/assets/test/sprockets/594d8e1916ab24a8257587125baba5f3
307
+ - spec/test_app/tmp/cache/assets/test/sprockets/59ea1f9969a93db0940a0ba7f748057d
308
+ - spec/test_app/tmp/cache/assets/test/sprockets/5cd771c7ecb7f92df29b1cf31ace30e5
309
+ - spec/test_app/tmp/cache/assets/test/sprockets/5d7b3b4903883854e98068b6a4c542e6
310
+ - spec/test_app/tmp/cache/assets/test/sprockets/638cf376566bc26bb673af298ebd4da2
311
+ - spec/test_app/tmp/cache/assets/test/sprockets/6816777ac981ca34843b7b4d3694d724
312
+ - spec/test_app/tmp/cache/assets/test/sprockets/70c38cc5f49a87b9fb3454edad1afd36
313
+ - spec/test_app/tmp/cache/assets/test/sprockets/79e4c02adfa3be301ce7bb604d502cee
314
+ - spec/test_app/tmp/cache/assets/test/sprockets/7a490c251567a163afe01c47a630ff0f
315
+ - spec/test_app/tmp/cache/assets/test/sprockets/8c93462ae47b4011514b7a1226047036
316
+ - spec/test_app/tmp/cache/assets/test/sprockets/98e3a1effd8bbf96f9c49a5daf5c9617
317
+ - spec/test_app/tmp/cache/assets/test/sprockets/9f1f3e4f626447e69612f2ed2234491d
318
+ - spec/test_app/tmp/cache/assets/test/sprockets/b65e5f3b0fb722f8d622be61dbefa144
319
+ - spec/test_app/tmp/cache/assets/test/sprockets/cd18b6e8c11b141140d011ffa802c0b1
320
+ - spec/test_app/tmp/cache/assets/test/sprockets/cff6c0afd89e57165d4916370d76607b
321
+ - spec/test_app/tmp/cache/assets/test/sprockets/d7d5b1e1d007f69e2341da3053d98bd8
322
+ - spec/test_app/tmp/cache/assets/test/sprockets/f15cc4598c1fe6c00dce0ad5f5e999a8
323
+ - spec/test_app/tmp/cache/assets/test/sprockets/f61b1eedcab6d9c68c66d10afdd120d5
324
+ - spec/test_app/tmp/cache/assets/test/sprockets/ffd034e84822331c80a8c0007c62985c
325
+ has_rdoc:
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- module LtiPublicResources
4
- class ApiControllerTest < ActionController::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- module LtiPublicResources
4
- class EmberControllerTest < ActionController::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- end
9
- end
@@ -1,4 +0,0 @@
1
- Rails.application.routes.draw do
2
- get "ember/index"
3
- mount LtiPublicResources::Engine => "/public_resources"
4
- end
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module LtiPublicResources
4
- class ApiHelperTest < ActionView::TestCase
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module LtiPublicResources
4
- class EmberHelperTest < ActionView::TestCase
5
- end
6
- end
@@ -1,10 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
5
-
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
10
-
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class LtiPublicResourcesTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, LtiPublicResources
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end