This repository was archived by the owner on Jun 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +187
-0
lines changed Expand file tree Collapse file tree 10 files changed +187
-0
lines changed Original file line number Diff line number Diff line change
1
+ .bundle
2
+ db /* .qlite3
3
+ log /* .log
4
+ tmp /** /*
5
+ config /database.yml
6
+ tmp /*
7
+ public /javascripts /backbone /** /** /* .js
8
+ public /javascripts /backbone /* .js
9
+ public /javascripts /backbone /collections /
10
+ public /javascripts /backbone /models /
11
+ doc /api
12
+ doc /app
13
+ * .swp
14
+ * .swo
15
+ * .un~
16
+ * ˜
17
+ .DS_Store
18
+ schema.rb
19
+ .tags
20
+ emails /*
21
+ public /uploads /*
Original file line number Diff line number Diff line change
1
+
2
+ begin
3
+ require 'jasmine'
4
+ load 'jasmine/tasks/jasmine.rake'
5
+ rescue LoadError
6
+ task :jasmine do
7
+ abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
8
+ end
9
+ end
Original file line number Diff line number Diff line change
1
+ SupportBee = {
2
+ WebForm : {}
3
+ }
Original file line number Diff line number Diff line change
1
+ ( function ( ) {
2
+ var SupportBee ;
3
+ SupportBee = {
4
+ WebForm : { }
5
+ } ;
6
+ } ) . call ( this ) ;
Original file line number Diff line number Diff line change
1
+ describe " SupportBee.Form" , ->
2
+
3
+ it " should work" , ->
4
+ expect (true ).toBe (false )
Original file line number Diff line number Diff line change
1
+ ( function ( ) {
2
+ describe ( "SupportBee.Form" , function ( ) {
3
+ return it ( "should work" , function ( ) {
4
+ return expect ( true ) . toBe ( false ) ;
5
+ } ) ;
6
+ } ) ;
7
+ } ) . call ( this ) ;
Original file line number Diff line number Diff line change
1
+ beforeEach ( function ( ) {
2
+ this . addMatchers ( {
3
+ toBePlaying : function ( expectedSong ) {
4
+ var player = this . actual ;
5
+ return player . currentlyPlayingSong === expectedSong
6
+ && player . isPlaying ;
7
+ }
8
+ } )
9
+ } ) ;
Original file line number Diff line number Diff line change
1
+ # src_files
2
+ #
3
+ # Return an array of filepaths relative to src_dir to include before jasmine specs.
4
+ # Default: []
5
+ #
6
+ # EXAMPLE:
7
+ #
8
+ # src_files:
9
+ # - lib/source1.js
10
+ # - lib/source2.js
11
+ # - dist/**/*.js
12
+ #
13
+ src_files :
14
+ - public/javascripts/**/*.js
15
+
16
+ # stylesheets
17
+ #
18
+ # Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs.
19
+ # Default: []
20
+ #
21
+ # EXAMPLE:
22
+ #
23
+ # stylesheets:
24
+ # - css/style.css
25
+ # - stylesheets/*.css
26
+ #
27
+ stylesheets :
28
+
29
+ # helpers
30
+ #
31
+ # Return an array of filepaths relative to spec_dir to include before jasmine specs.
32
+ # Default: ["helpers/**/*.js"]
33
+ #
34
+ # EXAMPLE:
35
+ #
36
+ # helpers:
37
+ # - helpers/**/*.js
38
+ #
39
+ helpers :
40
+
41
+ # spec_files
42
+ #
43
+ # Return an array of filepaths relative to spec_dir to include.
44
+ # Default: ["**/*[sS]pec.js"]
45
+ #
46
+ # EXAMPLE:
47
+ #
48
+ # spec_files:
49
+ # - **/*[sS]pec.js
50
+ #
51
+ spec_files :
52
+
53
+ # src_dir
54
+ #
55
+ # Source directory path. Your src_files must be returned relative to this path. Will use root if left blank.
56
+ # Default: project root
57
+ #
58
+ # EXAMPLE:
59
+ #
60
+ # src_dir: public
61
+ #
62
+ src_dir :
63
+
64
+ # spec_dir
65
+ #
66
+ # Spec directory path. Your spec_files must be returned relative to this path.
67
+ # Default: spec/javascripts
68
+ #
69
+ # EXAMPLE:
70
+ #
71
+ # spec_dir: spec/javascripts
72
+ #
73
+ spec_dir :
Original file line number Diff line number Diff line change
1
+ module Jasmine
2
+ class Config
3
+
4
+ # Add your overrides or custom config code here
5
+
6
+ end
7
+ end
8
+
9
+
10
+ # Note - this is necessary for rspec2, which has removed the backtrace
11
+ module Jasmine
12
+ class SpecBuilder
13
+ def declare_spec ( parent , spec )
14
+ me = self
15
+ example_name = spec [ "name" ]
16
+ @spec_ids << spec [ "id" ]
17
+ backtrace = @example_locations [ parent . description + " " + example_name ]
18
+ parent . it example_name , { } do
19
+ me . report_spec ( spec [ "id" ] )
20
+ end
21
+ end
22
+ end
23
+ end
Original file line number Diff line number Diff line change
1
+ $:. unshift ( ENV [ 'JASMINE_GEM_PATH' ] ) if ENV [ 'JASMINE_GEM_PATH' ] # for gem testing purposes
2
+
3
+ require 'rubygems'
4
+ require 'jasmine'
5
+ jasmine_config_overrides = File . expand_path ( File . join ( File . dirname ( __FILE__ ) , 'jasmine_config.rb' ) )
6
+ require jasmine_config_overrides if File . exist? ( jasmine_config_overrides )
7
+ if Jasmine ::rspec2?
8
+ require 'rspec'
9
+ else
10
+ require 'spec'
11
+ end
12
+
13
+ jasmine_config = Jasmine ::Config . new
14
+ spec_builder = Jasmine ::SpecBuilder . new ( jasmine_config )
15
+
16
+ should_stop = false
17
+
18
+ if Jasmine ::rspec2?
19
+ RSpec . configuration . after ( :suite ) do
20
+ spec_builder . stop if should_stop
21
+ end
22
+ else
23
+ Spec ::Runner . configure do |config |
24
+ config . after ( :suite ) do
25
+ spec_builder . stop if should_stop
26
+ end
27
+ end
28
+ end
29
+
30
+ spec_builder . start
31
+ should_stop = true
32
+ spec_builder . declare_suites
You can’t perform that action at this time.
0 commit comments