Merge pull request #1 from finnlabs/feature/fix_specs

Make specs run (some are not implemented)
pull/6827/head
sschu 11 years ago
commit 88c6912b41
  1. 3
      spec/lib/spreadsheet_builder_spec.rb
  2. 14
      spec/patches/cost_reports_controller_patch_spec.rb
  3. 3
      spec/patches/issues_controller_patch_spec.rb
  4. 5
      test/test_helper.rb

@ -1,9 +1,8 @@
require 'spec_helper'
require 'xls_report/spreadsheet_builder'
describe "SpreadsheetBuilder" do
before(:each) do
@spreadsheet = SpreadsheetBuilder.new
@spreadsheet = OpenProject::XlsExport::SpreadsheetBuilder.new
@sheet = @spreadsheet.send(:raw_sheet)
end

@ -1,22 +1,22 @@
require 'spec_helper'
require 'xls_report/issues_controller_patch'
describe CostReportsController, "rendering to xls" do
describe 'CostReportsController', "rendering to xls" do
pending 'XlsExport: CostReports support not yet migrated to Rails 3'
it "should respond with the xls if requested in the index" do
pending
render :action => :index
response.should be_redirect
end
it "should not respond with the xls if requested in a detail view" do
pending
render :action => :show
response.should be_redirect
end
it "should generate xls from issues" do
pending
end
end
end

@ -1,5 +1,4 @@
require 'spec_helper'
require 'xls_report/issues_controller_patch'
describe IssuesController, "rendering to xls" do
@ -20,4 +19,4 @@ describe IssuesController, "rendering to xls" do
pending
end
end
end

@ -1,5 +0,0 @@
# Load the normal Rails helper
require File.expand_path(File.dirname(__FILE__) + '/../../../../test/test_helper')
# Ensure that we are using the temporary fixture path
Engines::Testing.set_fixture_path
Loading…
Cancel
Save