Permalink
Browse files

add coveralls

  • Loading branch information...
1 parent b6fc893 commit 9cdb86e9a0d0dba11f189a2bfdcf9a0853935b09 @jmabry111 committed May 1, 2013
View
1 Gemfile
@@ -17,6 +17,7 @@ gem 'kaminari'
gem 'awesome_nested_fields'
gem 'devise'
gem 'textacular'
+gem 'coveralls', require: false
group :development, :test do
View
14 app/controllers/instructor/sections_controller.rb
@@ -0,0 +1,14 @@
+class Instructor::SectionsController < ApplicationController
+
+ skip_before_filter :authenticate_user!
+
+ def show
+ @section = Section.find(params[:id])
+ @students = @section.students.page(params[:page])
+ end
+
+ def index
+ @teacher = Teacher.find_by_id(params[:teacher_id])
+ @sections = @teacher.sections
+ end
+end
View
5 app/views/instructors/sections/index.html.erb
@@ -0,0 +1,5 @@
+<div class="center hero-unit">
+ <% @teacher.sections.each do |s| %>
+ <%= s.course.course_name %>
+ <% end %>
+</div>
View
2 spec/spec_helper.rb
@@ -3,6 +3,8 @@
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
+require 'coveralls'
+Coveralls.wear!
@brentm5
brentm5 added a line comment May 8, 2013

Btw you need to have this I believe for it to actually work

Coveralls.wear!('rails')
@jmabry111
Owner
jmabry111 added a line comment May 8, 2013
@drapergeek
Collaborator
drapergeek added a line comment May 8, 2013

Geez @bigbam505, way to burst his bubble!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.

0 comments on commit 9cdb86e

Please sign in to comment.