aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorAlban Peignier2012-05-16 16:55:57 +0200
committerAlban Peignier2012-05-16 16:55:57 +0200
commit39a4249b8c5197cfee6b8eb4673485628408e07a (patch)
tree61619db5ea5e722b2c7752bbfc914f5a7a859fdd /spec
parenta2260f9d3737188d22504f705825ed5a846bb861 (diff)
downloadchouette-core-39a4249b8c5197cfee6b8eb4673485628408e07a.tar.bz2
Create first Imports. Refs #23
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/imports_controller_spec.rb20
-rw-r--r--spec/helpers/imports_helper_spec.rb15
-rw-r--r--spec/models/import_spec.rb7
-rw-r--r--spec/views/imports/index.html.erb_spec.rb5
-rw-r--r--spec/views/imports/new.html.erb_spec.rb5
5 files changed, 52 insertions, 0 deletions
diff --git a/spec/controllers/imports_controller_spec.rb b/spec/controllers/imports_controller_spec.rb
new file mode 100644
index 000000000..93640684a
--- /dev/null
+++ b/spec/controllers/imports_controller_spec.rb
@@ -0,0 +1,20 @@
+require 'spec_helper'
+
+describe ImportsController do
+ login_user
+
+ describe "GET 'new'" do
+ it "returns http success" do
+ get 'new'
+ response.should be_success
+ end
+ end
+
+ describe "GET 'index'" do
+ it "returns http success" do
+ get 'index'
+ response.should be_success
+ end
+ end
+
+end
diff --git a/spec/helpers/imports_helper_spec.rb b/spec/helpers/imports_helper_spec.rb
new file mode 100644
index 000000000..8e5ec0c86
--- /dev/null
+++ b/spec/helpers/imports_helper_spec.rb
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+# Specs in this file have access to a helper object that includes
+# the ImportsHelper. For example:
+#
+# describe ImportsHelper do
+# describe "string concat" do
+# it "concats two strings with spaces" do
+# helper.concat_strings("this","that").should == "this that"
+# end
+# end
+# end
+describe ImportsHelper do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
diff --git a/spec/models/import_spec.rb b/spec/models/import_spec.rb
new file mode 100644
index 000000000..734445b8b
--- /dev/null
+++ b/spec/models/import_spec.rb
@@ -0,0 +1,7 @@
+require 'spec_helper'
+
+describe Import do
+
+
+
+end
diff --git a/spec/views/imports/index.html.erb_spec.rb b/spec/views/imports/index.html.erb_spec.rb
new file mode 100644
index 000000000..c0f2d3462
--- /dev/null
+++ b/spec/views/imports/index.html.erb_spec.rb
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "imports/index.html.erb" do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
diff --git a/spec/views/imports/new.html.erb_spec.rb b/spec/views/imports/new.html.erb_spec.rb
new file mode 100644
index 000000000..a31539279
--- /dev/null
+++ b/spec/views/imports/new.html.erb_spec.rb
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe "imports/new.html.erb" do
+ pending "add some examples to (or delete) #{__FILE__}"
+end