Skip to content

Commit

Permalink
Fixes minor rspec issue
Browse files Browse the repository at this point in the history
  • Loading branch information
athityakumar committed Aug 29, 2017
1 parent 5b39712 commit b376af1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/daru/io/importers/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def from(dbh)
# # 0 1 Homer 20
# # 1 2 Marge 30
def read(path)
db = attempt_sqlite3_connection(path) if Pathname(db).exist?
db = attempt_sqlite3_connection(path) if Pathname(path).exist?
from(db)
end

Expand Down
2 changes: 2 additions & 0 deletions spec/daru/io/importers/sql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
end

context 'with path to sqlite3 file' do
subject { described_class.new(query).read(source) }

let(:source) { db_name }

it_behaves_like 'exact daru dataframe',
Expand Down

0 comments on commit b376af1

Please sign in to comment.