summaryrefslogtreecommitdiffstats
path: root/js/tests/controllers
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-13 17:28:07 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-13 17:28:38 +0200
commit38e4b6d7e973bc99811139066a7a047b4bd76a4c (patch)
treefb88f63c0a69cc527956715333dddd20d3b94f0b /js/tests/controllers
parent8df86d1991e25dfaef8623e2f4945c67dbc5f318 (diff)
implement opml import, fix #23
Diffstat (limited to 'js/tests/controllers')
-rw-r--r--js/tests/controllers/settingscontrollerSpec.coffee22
1 files changed, 20 insertions, 2 deletions
diff --git a/js/tests/controllers/settingscontrollerSpec.coffee b/js/tests/controllers/settingscontrollerSpec.coffee
index aa66b6878..cedf5eb44 100644
--- a/js/tests/controllers/settingscontrollerSpec.coffee
+++ b/js/tests/controllers/settingscontrollerSpec.coffee
@@ -21,7 +21,25 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
###
-describe '_SettingsController', ->
+describe 'SettingsController', ->
+ beforeEach module 'News'
- beforeEach module 'News' \ No newline at end of file
+ beforeEach inject ($controller, @FeedBl, @FolderBl) =>
+ @scope = {}
+ @replace =
+ '$scope': @scope
+ @controller = $controller('SettingsController', @replace)
+
+
+ it 'should make FeedBl available', =>
+ expect(@scope.feedBl).toBe(@FeedBl)
+
+
+ it 'should show an error if the xml import failed', =>
+ xml = 'test'
+
+ @scope.import(xml)
+
+ expect(@scope.error).toBe(true)
+ \ No newline at end of file