erp_products 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/app/controllers/erp_products/erp_app/desktop/product_manager/base_controller.rb +1 -1
  2. data/app/models/product_type.rb +2 -2
  3. data/lib/erp_products/engine.rb +7 -1
  4. data/lib/erp_products/version.rb +7 -1
  5. data/lib/erp_products.rb +1 -0
  6. data/public/javascripts/erp_app/desktop/applications/product_manager/module.js +713 -718
  7. data/public/javascripts/erp_app/desktop/applications/product_manager/product_list_panel.js +127 -128
  8. data/spec/dummy/Rakefile +7 -0
  9. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  10. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  11. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  12. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  13. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  14. data/spec/dummy/config/application.rb +49 -0
  15. data/spec/dummy/config/boot.rb +10 -0
  16. data/spec/dummy/config/database.yml +8 -0
  17. data/spec/dummy/config/environment.rb +5 -0
  18. data/spec/dummy/config/environments/spec.rb +27 -0
  19. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  20. data/spec/dummy/config/initializers/inflections.rb +10 -0
  21. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  22. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  23. data/spec/dummy/config/initializers/session_store.rb +8 -0
  24. data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
  25. data/spec/dummy/config/locales/en.yml +5 -0
  26. data/spec/dummy/config/routes.rb +3 -0
  27. data/spec/dummy/config.ru +4 -0
  28. data/spec/dummy/public/404.html +26 -0
  29. data/spec/dummy/public/422.html +26 -0
  30. data/spec/dummy/public/500.html +26 -0
  31. data/spec/dummy/public/favicon.ico +0 -0
  32. data/spec/dummy/script/rails +6 -0
  33. data/spec/models/prod_availability_status_type_spec.rb +11 -0
  34. data/spec/models/prod_instance_reln_spec.rb +11 -0
  35. data/spec/models/prod_instance_reln_type_spec.rb +11 -0
  36. data/spec/models/prod_instance_role_type_spec.rb +11 -0
  37. data/spec/models/prod_type_reln_spec.rb +11 -0
  38. data/spec/models/prod_type_reln_type_spec.rb +12 -0
  39. data/spec/models/prod_type_role_type_spec.rb +12 -0
  40. data/spec/models/product_instance_spec.rb +13 -0
  41. data/spec/models/product_offer_spec.rb +12 -0
  42. data/spec/models/product_package_spec.rb +12 -0
  43. data/spec/models/product_type_spec.rb +13 -0
  44. data/spec/models/simple_product_offer_spec.rb +14 -0
  45. data/spec/spec_helper.rb +60 -0
  46. metadata +110 -34
@@ -1,141 +1,140 @@
1
1
  Ext.define("Compass.ErpApp.Desktop.Applications.ProductManager.ProductsPanel",{
2
- extend:"Ext.panel.Panel",
3
- alias:'widget.productmanagement_productspanel',
4
- loadProducts : function(){
5
- this.productsDataView.getStore().load();
6
- },
2
+ extend:"Ext.panel.Panel",
3
+ alias:'widget.productmanagement_productspanel',
4
+ loadProducts : function(){
5
+ this.productsDataView.getStore().load();
6
+ },
7
7
 
8
- deleteProduct : function(id){
9
- var self = this;
10
- Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete this product?', function(btn){
11
- if(btn == 'no'){
12
- return false;
8
+ deleteProduct : function(id){
9
+ var self = this;
10
+ Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete this product?', function(btn){
11
+ if(btn == 'no'){
12
+ return false;
13
+ }
14
+ else
15
+ {
16
+ Ext.Ajax.request({
17
+ url: '/erp_products/erp_app/desktop/product_manager/delete/'+id,
18
+ success: function(response) {
19
+ var obj = Ext.decode(response.responseText);
20
+ if(obj.success){
21
+ self.productsDataView.getStore().load();
13
22
  }
14
- else
15
- {
16
- var conn = new Ext.data.Connection();
17
- conn.request({
18
- url: '/erp_products/erp_app/desktop/product_manager/delete/'+id,
19
- success: function(response) {
20
- var obj = Ext.decode(response.responseText);
21
- if(obj.success){
22
- self.productsDataView.getStore().load();
23
- }
24
- else{
25
- Ext.Msg.alert('Error', 'Error deleting product.');
26
- }
27
- },
28
- failure: function(response) {
29
- Ext.Msg.alert('Error', 'Error deleting product.');
30
- }
31
- });
23
+ else{
24
+ Ext.Msg.alert('Error', 'Error deleting product.');
32
25
  }
26
+ },
27
+ failure: function(response) {
28
+ Ext.Msg.alert('Error', 'Error deleting product.');
29
+ }
33
30
  });
34
- },
31
+ }
32
+ });
33
+ },
35
34
 
36
- initComponent: function() {
37
- Compass.ErpApp.Desktop.Applications.ProductManager.ProductsPanel.superclass.initComponent.call(this, arguments);
38
- },
35
+ initComponent: function() {
36
+ Compass.ErpApp.Desktop.Applications.ProductManager.ProductsPanel.superclass.initComponent.call(this, arguments);
37
+ },
39
38
 
40
- constructor : function(config) {
41
- var self = this;
39
+ constructor : function(config) {
40
+ var self = this;
42
41
 
43
- this.productsDataView = Ext.create("Ext.view.View",{
44
- autoDestroy:true,
45
- itemSelector: 'tr.product-wrap',
46
- style:'overflow:auto',
47
- store: Ext.create("Ext.data.Store",{
48
- autoLoad: true,
49
- proxy:{
50
- type:'ajax',
51
- url: '/erp_products/erp_app/desktop/product_manager/',
52
- reader:{
53
- root: 'products',
54
- type:'json'
55
- }
56
- },
57
- fields:['imageUrl', 'id', 'title', 'available', 'sold','price','sku']
58
- }),
59
- tpl: new Ext.XTemplate(
60
- '<table id="products-view">',
61
- '<thead>',
62
- '<tr>',
63
- '<td>Product</td>',
64
- '<td># Available</td>',
65
- '<td># Sold</td>',
66
- '</tr>',
67
- '</thead>',
68
- '<tbody>',
69
- '<tpl for=".">',
70
- '<tr class="product-wrap" style="cursor:pointer;">',
71
- '<td>',
72
- '<div><img src="{imageUrl}" /></div>',
73
- '<div>',
74
- '<span>{title}</span><br/>',
75
- '<span>{price}</span><br/>',
76
- '<span>SKU # {sku}</span>',
77
- '</div>',
78
- '</td>',
79
- '<td>{available}</td>',
80
- '<td>{sold}</td>',
81
- '</tr>',
82
- '</tpl>',
83
- '</tbody>',
84
- '</table>'
85
- ),
86
- listeners:{
87
- 'itemcontextmenu':function(view, record, htmlitem, index, e, options){
88
- e.stopEvent();
89
- var contextMenu = Ext.create("Ext.menu.Menu",{
90
- items:[
91
- {
92
- text:'Delete',
93
- iconCls:'icon-delete',
94
- handler:function(btn){
95
- var id = self.productsDataView.getStore().getAt(index).get('id');
96
- self.deleteProduct(id);
97
- }
98
- }
99
- ]
100
- });
101
- contextMenu.showAt(e.xy);
102
- },
103
- 'itemclick':function(view, record, htmlitem, index, e, options){
104
- e.stopEvent();
105
- var id = self.productsDataView.getStore().getAt(index).get('id');
106
- var win = Ext.create("Compass.ErpApp.Desktop.Applications.ProductManager.UpdateProductWindow",{
107
- productTypeId:id
108
- });
109
- win.show();
110
- }
42
+ this.productsDataView = Ext.create("Ext.view.View",{
43
+ autoDestroy:true,
44
+ itemSelector: 'tr.product-wrap',
45
+ style:'overflow:auto',
46
+ store: Ext.create("Ext.data.Store",{
47
+ autoLoad: true,
48
+ proxy:{
49
+ type:'ajax',
50
+ url: '/erp_products/erp_app/desktop/product_manager/',
51
+ reader:{
52
+ root: 'products',
53
+ type:'json'
54
+ }
55
+ },
56
+ fields:['imageUrl', 'id', 'title', 'available', 'sold','price','sku']
57
+ }),
58
+ tpl: new Ext.XTemplate(
59
+ '<table id="products-view">',
60
+ '<thead>',
61
+ '<tr>',
62
+ '<td>Product</td>',
63
+ '<td># Available</td>',
64
+ '<td># Sold</td>',
65
+ '</tr>',
66
+ '</thead>',
67
+ '<tbody>',
68
+ '<tpl for=".">',
69
+ '<tr class="product-wrap" style="cursor:pointer;">',
70
+ '<td>',
71
+ '<div><img src="{imageUrl}" /></div>',
72
+ '<div>',
73
+ '<span>{title}</span><br/>',
74
+ '<span>{price}</span><br/>',
75
+ '<span>SKU # {sku}</span>',
76
+ '</div>',
77
+ '</td>',
78
+ '<td>{available}</td>',
79
+ '<td>{sold}</td>',
80
+ '</tr>',
81
+ '</tpl>',
82
+ '</tbody>',
83
+ '</table>'
84
+ ),
85
+ listeners:{
86
+ 'itemcontextmenu':function(view, record, htmlitem, index, e, options){
87
+ e.stopEvent();
88
+ var contextMenu = Ext.create("Ext.menu.Menu",{
89
+ items:[
90
+ {
91
+ text:'Delete',
92
+ iconCls:'icon-delete',
93
+ handler:function(btn){
94
+ var id = self.productsDataView.getStore().getAt(index).get('id');
95
+ self.deleteProduct(id);
96
+ }
111
97
  }
112
- });
98
+ ]
99
+ });
100
+ contextMenu.showAt(e.xy);
101
+ },
102
+ 'itemclick':function(view, record, htmlitem, index, e, options){
103
+ e.stopEvent();
104
+ var id = self.productsDataView.getStore().getAt(index).get('id');
105
+ var win = Ext.create("Compass.ErpApp.Desktop.Applications.ProductManager.UpdateProductWindow",{
106
+ productTypeId:id
107
+ });
108
+ win.show();
109
+ }
110
+ }
111
+ });
113
112
 
114
- config = Ext.apply({
115
- id:'productListPanel',
116
- border:false,
117
- autoDestroy:true,
118
- margins: '5 5 5 0',
119
- autoScroll:true,
120
- layout:'fit',
121
- items:[this.productsDataView],
122
- tbar:{
123
- items:[
124
- {
125
- text:'Add Product',
126
- iconCls:'icon-add',
127
- handler:function(btn){
128
- var window = Ext.create("Compass.ErpApp.Desktop.Applications.ProductManager.AddProductWindow",{
129
- productListPanel:self
130
- });
131
- window.show();
132
- }
133
- }
134
- ]
135
- }
136
- }, config);
113
+ config = Ext.apply({
114
+ id:'productListPanel',
115
+ border:false,
116
+ autoDestroy:true,
117
+ margins: '5 5 5 0',
118
+ autoScroll:true,
119
+ layout:'fit',
120
+ items:[this.productsDataView],
121
+ tbar:{
122
+ items:[
123
+ {
124
+ text:'Add Product',
125
+ iconCls:'icon-add',
126
+ handler:function(btn){
127
+ var window = Ext.create("Compass.ErpApp.Desktop.Applications.ProductManager.AddProductWindow",{
128
+ productListPanel:self
129
+ });
130
+ window.show();
131
+ }
132
+ }
133
+ ]
134
+ }
135
+ }, config);
137
136
 
138
- Compass.ErpApp.Desktop.Applications.ProductManager.ProductsPanel.superclass.constructor.call(this, config);
139
- }
137
+ Compass.ErpApp.Desktop.Applications.ProductManager.ProductsPanel.superclass.constructor.call(this, config);
138
+ }
140
139
 
141
140
  });
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+
7
+ Dummy::Application.load_tasks
@@ -0,0 +1,9 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require_tree .
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag "application" %>
6
+ <%= javascript_include_tag "application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,49 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require
6
+ require "erp_base_erp_svcs"
7
+ require "erp_tech_svcs"
8
+ require "erp_app"
9
+ require "erp_agreements"
10
+ require "erp_txns_and_accts"
11
+ require "erp_commerce"
12
+ require "erp_orders"
13
+ require "erp_products"
14
+
15
+ module Dummy
16
+ class Application < Rails::Application
17
+ # Settings in config/environments/* take precedence over those specified here.
18
+ # Application configuration should go into files in config/initializers
19
+ # -- all .rb files in that directory are automatically loaded.
20
+
21
+ # Custom directories with classes and modules you want to be autoloadable.
22
+ # config.autoload_paths += %W(#{config.root}/extras)
23
+
24
+ # Only load the plugins named here, in the order given (default is alphabetical).
25
+ # :all can be used as a placeholder for all plugins not explicitly named.
26
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
27
+
28
+ # Activate observers that should always be running.
29
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
30
+
31
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
32
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
33
+ # config.time_zone = 'Central Time (US & Canada)'
34
+
35
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
36
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
37
+ # config.i18n.default_locale = :de
38
+
39
+ # Configure the default encoding used in templates for Ruby 1.9.
40
+ config.encoding = "utf-8"
41
+
42
+ # Configure sensitive parameters which will be filtered from the log file.
43
+ config.filter_parameters += [:password]
44
+
45
+ # Enable the asset pipeline
46
+ config.assets.enabled = true
47
+ end
48
+ end
49
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,8 @@
1
+ # Warning: The database defined as "test" will be erased and
2
+ # re-generated from your development database when you run "rake".
3
+ # Do not set this db to the same as development or production.
4
+ spec:
5
+ adapter: sqlite3
6
+ database: db/spec.sqlite3
7
+ pool: 5
8
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,27 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
27
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'ae0d58840f73a49e40850c9d815a6a135e169865cdb8721cec7f335a738af09f3483de0f99d7c131f8fdecf2d8b508f8fd5e2e33c8d0565dcc9030eadb227695'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActionController::Base.wrap_parameters :format => [:json]
8
+
9
+ # Disable root element in JSON by default.
10
+ if defined?(ActiveRecord)
11
+ ActiveRecord::Base.include_root_in_json = false
12
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount ErpProducts::Engine => "/erp_products"
3
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe ProdAvailabilityStatusType do
4
+ it "can be instantiated" do
5
+ ProdAvailabilityStatusType.new.should be_an_instance_of(ProdAvailabilityStatusType)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ ProdAvailabilityStatusType.create().should be_persisted
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe ProdInstanceReln do
4
+ it "can be instantiated" do
5
+ ProdInstanceReln.new.should be_an_instance_of(ProdInstanceReln)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ ProdInstanceReln.create().should be_persisted
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe ProdInstanceRelnType do
4
+ it "can be instantiated" do
5
+ ProdInstanceRelnType.new.should be_an_instance_of(ProdInstanceRelnType)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ ProdInstanceRelnType.create().should be_persisted
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe ProdInstanceRoleType do
4
+ it "can be instantiated" do
5
+ ProdInstanceRoleType.new.should be_an_instance_of(ProdInstanceRoleType)
6
+ end
7
+
8
+ it "can be saved successfully" do
9
+ ProdInstanceRoleType.create().should be_persisted
10
+ end
11
+ end