Skip to content

Commit

Permalink
Introduced rspec and wrote the first spec for this codebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay Raghavan Aravamudhan committed Oct 20, 2017
1 parent 3b00c84 commit f58d9f0
Show file tree
Hide file tree
Showing 16 changed files with 546 additions and 205 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@
/public/system

.DS_Store
Passwords.txt
Passwords.txt

/coverage/
6 changes: 6 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--color
--order random
--profile
--backtrace
--format Fuubar
--require rails_helper
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bee-Connect
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.4.1
11 changes: 11 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SimpleCov.minimum_coverage 7.50
# TODO: Uncomment once you write tests for each file
# SimpleCov.minimum_coverage_by_file 80
SimpleCov.refuse_coverage_drop
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
SimpleCov.start :rails do
add_group 'Channels', 'app/channels'
add_group 'Mailers', 'app/mailers'
add_group 'Policies', 'app/policies'
add_filter 'vendor/'
end
18 changes: 17 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ git_source(:github) do |repo_name|
"https://github.com/#{repo_name}.git"
end

ruby '2.4.1'

gem 'rails', '~> 5.0.1'
gem 'puma', '~> 3.0'
gem 'sass-rails', '~> 5.0'
Expand All @@ -21,7 +23,21 @@ group :development do
gem 'meta_request'
gem 'web-console'
gem "awesome_print", require:"ap"
end

group :development, :test do
gem 'rspec-rails', '~> 3.6'
end

group :test do
gem 'fuubar', '~> 2.2.0'
gem 'database_cleaner', '~> 1.6'
gem 'factory_girl_rails', '~> 4.6'
gem 'faker', '~> 1.7'
gem 'shoulda', '~> 3.5.0'
gem 'simplecov', '~> 0.14', require: false
end

group :production do
gem 'mysql2', '~> 0.4.5'
end
Expand All @@ -37,4 +53,4 @@ gem 'kaminari'
gem 'rails_admin'

gem 'remotipart', '~> 1.2'
gem 'sidekiq'
gem 'sidekiq'
57 changes: 55 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,30 @@ GEM
coffee-script-source (1.12.2)
concurrent-ruby (1.0.4)
connection_pool (2.2.1)
database_cleaner (1.6.1)
debug_inspector (0.0.2)
devise (4.2.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0, < 5.1)
responders
warden (~> 1.2.3)
diff-lcs (1.3)
docile (1.1.5)
erubis (2.7.0)
execjs (2.7.0)
factory_girl (4.8.1)
activesupport (>= 3.0.0)
factory_girl_rails (4.8.0)
factory_girl (~> 4.8.0)
railties (>= 3.0.0)
faker (1.8.4)
i18n (~> 0.5)
font-awesome-rails (4.7.0.1)
railties (>= 3.2, < 5.1)
fuubar (2.2.0)
rspec-core (~> 3.0)
ruby-progressbar (~> 1.4)
globalid (0.3.7)
activesupport (>= 4.1.0)
haml (4.0.7)
Expand All @@ -87,6 +100,7 @@ GEM
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (2.1.0)
kaminari (0.17.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
Expand Down Expand Up @@ -121,7 +135,7 @@ GEM
cocaine (~> 0.5.5)
mime-types
mimemagic (~> 0.3.0)
puma (3.6.2)
puma (3.10.0)
rack (2.0.1)
rack-contrib (1.2.0)
rack (>= 0.9.1)
Expand Down Expand Up @@ -173,13 +187,37 @@ GEM
remotipart (1.3.1)
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
rspec-core (3.7.0)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-rails (3.7.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.0)
ruby-progressbar (1.9.0)
sass (3.4.23)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
shoulda (3.5.0)
shoulda-context (~> 1.0, >= 1.0.1)
shoulda-matchers (>= 1.4.1, < 3.0)
shoulda-context (1.2.2)
shoulda-matchers (2.8.0)
activesupport (>= 3.0.0)
sidekiq (4.2.9)
concurrent-ruby (~> 1.0)
connection_pool (~> 2.2, >= 2.2.0)
Expand All @@ -188,6 +226,11 @@ GEM
simple_form (3.4.0)
actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1)
simplecov (0.15.1)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand Down Expand Up @@ -226,7 +269,11 @@ DEPENDENCIES
awesome_print
bootstrap-sass
coffee-rails (~> 4.2)
database_cleaner (~> 1.6)
devise
factory_girl_rails (~> 4.6)
faker (~> 1.7)
fuubar (~> 2.2.0)
haml
jbuilder (~> 2.5)
jquery-rails
Expand All @@ -239,13 +286,19 @@ DEPENDENCIES
rails_admin
redis (~> 3.0)
remotipart (~> 1.2)
rspec-rails (~> 3.6)
sass-rails (~> 5.0)
shoulda (~> 3.5.0)
sidekiq
simple_form
simplecov (~> 0.14)
sqlite3
tzinfo-data
uglifier (>= 1.3.0)
web-console

RUBY VERSION
ruby 2.4.1p111

BUNDLED WITH
1.13.6
1.15.4
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ An advance rails user interaction system. Think like its is mini facebook with l
## Installation


### Devlopment
### Development
For development we use sqlite. Feel free to use any database like mysql or sqlite or pgsql.

* For windows user you can install imagemagic and add to path and also remember to install redis server on windows. For ubuntu you can follow the guide.
Expand Down
13 changes: 11 additions & 2 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
development:
default: &default
adapter: sqlite3
# For details on connection pooling, see rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: 5
timeout: 5000

development:
<<: *default
database: db/development.sqlite3

test:
<<: *default
database: db/test.sqlite3

production:
adapter: mysql2
encoding: utf8
reconnect: false
database: chatounce_production
pool: 5
username: laxman
password: chatouncem*
password: chatouncem*
Loading

0 comments on commit f58d9f0

Please sign in to comment.